|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IAttributesModelpublic IAttributesModel restrict(IComplexType aType)
restrict in interface IAttributesModelpublic void setAttrGroupDecl(IAttrGroupDecl anAttrGroupDecl)
setAttrGroupDecl in interface IAttributesModelpublic IWildcard getWildcard()
getWildcard in interface IAttributesModelpublic void setWildcard(IWildcard aWildcard)
setWildcard in interface IAttributesModel
public void addAttrRefOrDecl(IAttrRefOrDecl anAttribute,
IConstraintViolations aViolations)
addAttrRefOrDecl in interface IAttributesModelpublic void completeDerivedModel(IConstraintViolations aViolations)
IAttributesModelIf 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 IAttributesModelpublic java.util.Iterator iterAttributes()
IAttributesModel
iterAttributes in interface IAttributesModelIAttrRefOrDecl.
public IAttrDesc getAttrDesc(java.lang.String aNamespace,
java.lang.String aLocalName,
IHasLocation aHasLocation)
throws XmlException
IAttributesModel
getAttrDesc in interface IAttributesModelaNamespace - (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 IAttributesModelaRef - (required).aHasLocation - (optional).
XmlException - Raised if the attribute is not contained in the attribute
model.public IAttrRefOrDecl getIdAttribute()
IAttributesModel
getIdAttribute in interface IAttributesModelpublic boolean hasAttribute(IRef aRef)
IAttributesModel
hasAttribute in interface IAttributesModelaRef - (required).
true iff the attribute is contained in the
attributes model.public IAttrRefOrDecl getAttrRefOrDecl(IRef aRef)
IAttributesModel
getAttrRefOrDecl in interface IAttributesModelaRef - (required).
public IAttrRefOrDecl getAttrRefOrDecl(java.lang.String aNamespace,
java.lang.String aName)
getAttrRefOrDecl in interface IAttributesModelpublic void validate(IConstraintViolations aViolations)
validate in interface IAttributesModelpublic IAttrRefOrDecl getDefaultAttr(IRef aRef)
getDefaultAttr in interface IAttributesModelpublic ILocation getLocation()
getLocation in interface IHasLocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||