|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains the attributes of a complex type.
Method Summary | |
void |
addAttrRefOrDecl(IAttrRefOrDecl anAttrRefOrDecl,
IConstraintViolations aViolations)
|
void |
completeDerivedModel(IConstraintViolations aViolations)
Completes the attributes model of a derived type. |
IAttributesModel |
extend(IComplexType aType)
|
IAttrDesc |
getAttrDesc(IRef aRef,
IHasLocation aHasLocation)
Gets an attribute description. |
IAttrDesc |
getAttrDesc(java.lang.String aNamespace,
java.lang.String aLocalName,
IHasLocation aHasLocation)
Gets an attribute description. |
IAttrRefOrDecl |
getAttrRefOrDecl(IRef aRef)
Gets the specified attribute. |
IAttrRefOrDecl |
getAttrRefOrDecl(java.lang.String aNamespace,
java.lang.String aName)
|
IAttrRefOrDecl |
getDefaultAttr(IRef aRef)
|
IAttrRefOrDecl |
getIdAttribute()
Gets the usage of the id attribute, if existing. |
IWildcard |
getWildcard()
|
boolean |
hasAttribute(IRef aRef)
Checks if the specified attribute is contained in the attributes model. |
java.util.Iterator |
iterAttributes()
Iterates the attributes. |
IAttributesModel |
restrict(IComplexType aType)
|
void |
setAttrGroupDecl(IAttrGroupDecl anAttrGroupDecl)
|
void |
setWildcard(IWildcard aWildcard)
|
void |
validate(IConstraintViolations aViolations)
|
Methods inherited from interface org.jbind.xml.base.IHasLocation |
getLocation |
Method Detail |
public IAttrDesc getAttrDesc(IRef aRef, IHasLocation aHasLocation) throws XmlException
aRef
- (required).aHasLocation
- (optional).
XmlException
- Raised if the attribute is not contained in the attribute
model.public IAttrDesc getAttrDesc(java.lang.String aNamespace, java.lang.String aLocalName, IHasLocation aHasLocation) throws XmlException
aNamespace
- (required).aLocalName
- (required).aHasLocation
- (optional).
XmlException
- Raised if the attribute is not contained in the attributes
model.public java.util.Iterator iterAttributes()
IAttrRefOrDecl
.public IAttrRefOrDecl getIdAttribute()
public IWildcard getWildcard()
public void setWildcard(IWildcard aWildcard)
public void addAttrRefOrDecl(IAttrRefOrDecl anAttrRefOrDecl, IConstraintViolations aViolations)
public void validate(IConstraintViolations aViolations)
public boolean hasAttribute(IRef aRef)
aRef
- (required).
true
iff the attribute is contained in the
attributes model.public IAttrRefOrDecl getAttrRefOrDecl(IRef aRef)
aRef
- (required).
public IAttrRefOrDecl getAttrRefOrDecl(java.lang.String aNamespace, java.lang.String aName)
public IAttributesModel extend(IComplexType aType)
public IAttributesModel restrict(IComplexType aType)
public IAttrRefOrDecl getDefaultAttr(IRef aRef)
public void completeDerivedModel(IConstraintViolations aViolations)
If this attributes model is an extension then all attributes from the parent model are copied into this model. Duplicated attributes are reported as constraint violations.
If this attributes model is a restriction then for each attribute it is checked if it is a valid restriction of an attribute of the base model. In addition, all attributes of the base model that were not restricted are copied into this model.
public void setAttrGroupDecl(IAttrGroupDecl anAttrGroupDecl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |