|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.schema.cmp.AttributesModel
Constructor Summary | |
AttributesModel(ISourceInfo aSourceInfo)
|
Method Summary | |
void |
addAttrRefOrDecl(IAttrRefOrDecl anAttribute,
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. |
ILocation |
getLocation()
|
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributesModel(ISourceInfo aSourceInfo)
Method Detail |
public IAttributesModel extend(IComplexType aType)
extend
in interface IAttributesModel
public IAttributesModel restrict(IComplexType aType)
restrict
in interface IAttributesModel
public void setAttrGroupDecl(IAttrGroupDecl anAttrGroupDecl)
setAttrGroupDecl
in interface IAttributesModel
public IWildcard getWildcard()
getWildcard
in interface IAttributesModel
public void setWildcard(IWildcard aWildcard)
setWildcard
in interface IAttributesModel
public void addAttrRefOrDecl(IAttrRefOrDecl anAttribute, IConstraintViolations aViolations)
addAttrRefOrDecl
in interface IAttributesModel
public void completeDerivedModel(IConstraintViolations aViolations)
IAttributesModel
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.
completeDerivedModel
in interface IAttributesModel
public java.util.Iterator iterAttributes()
IAttributesModel
iterAttributes
in interface IAttributesModel
IAttrRefOrDecl
.public IAttrDesc getAttrDesc(java.lang.String aNamespace, java.lang.String aLocalName, IHasLocation aHasLocation) throws XmlException
IAttributesModel
getAttrDesc
in interface IAttributesModel
aNamespace
- (required).aLocalName
- (required).aHasLocation
- (optional).
XmlException
- Raised if the attribute is not contained in the attributes
model.public IAttrDesc getAttrDesc(IRef aRef, IHasLocation aHasLocation) throws XmlException
IAttributesModel
getAttrDesc
in interface IAttributesModel
aRef
- (required).aHasLocation
- (optional).
XmlException
- Raised if the attribute is not contained in the attribute
model.public IAttrRefOrDecl getIdAttribute()
IAttributesModel
getIdAttribute
in interface IAttributesModel
public boolean hasAttribute(IRef aRef)
IAttributesModel
hasAttribute
in interface IAttributesModel
aRef
- (required).
true
iff the attribute is contained in the
attributes model.public IAttrRefOrDecl getAttrRefOrDecl(IRef aRef)
IAttributesModel
getAttrRefOrDecl
in interface IAttributesModel
aRef
- (required).
public IAttrRefOrDecl getAttrRefOrDecl(java.lang.String aNamespace, java.lang.String aName)
getAttrRefOrDecl
in interface IAttributesModel
public void validate(IConstraintViolations aViolations)
validate
in interface IAttributesModel
public IAttrRefOrDecl getDefaultAttr(IRef aRef)
getDefaultAttr
in interface IAttributesModel
public ILocation getLocation()
getLocation
in interface IHasLocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |