org.jbind.xml.schema.element
Interface IDerivation
- All Superinterfaces:
- IAnnotated, IElement, IHasBindingAttributes, IHasLocation, INode, IOpenAttributes, IParent, ISourceInfo, IXmlElement, IXmlNode
- All Known Subinterfaces:
- IComplexDerivation, IComplexExtensionDerivation, IComplexRestrictionDerivation, ISimpleDerivation, ISimpleExtensionDerivation, ISimpleRestrictionDerivation
- All Known Implementing Classes:
- ComplexDerivation, ComplexExtensionDerivation, ComplexRestrictionDerivation, Derivation, SimpleDerivation, SimpleExtensionDerivation, SimpleRestrictionDerivation
- public interface IDerivation
- extends IAnnotated
getBaseAttribute
public IRef getBaseAttribute()
- Gets the base attribute.
- Returns:
- (optional). There may be an inlined type in a restriction derivation.
In this case the base attribute may be
null
.
setBaseAttribute
public void setBaseAttribute(IRef aRef)
getInlinedBaseAttribute
public IRef getInlinedBaseAttribute()
- Gets the inlined base attribute. In case of simple type restrictions
(either as a simple type derivation or as a complex type derivation with
simple content) there may be an inlined simple type. The type referenced
by the inlined base attribute must be a subtype of the type referenced
by the base attribute.
- Returns:
- (optional).
getEffectiveBaseAttribute
public IRef getEffectiveBaseAttribute()
- Gets the effective base attribute. If there is a base attribute and an
inlined base attribute then the inlined base attribute is returned.
- Returns:
- (required).
getIsExtension
public boolean getIsExtension()
getAttributeInfos
public IAttributeInfos getAttributeInfos()
- Gets the attribute infos enclosed in the derivation. If it is an
abbreviated derivation then
null
is returned.
- Returns:
- Attribute infos. (optional)
getModelGroup
public IModelGroup getModelGroup()
- Gets the model group.
- Returns:
- Returns the model group iff this is a complex content model or
null
otherwise. (optional)
getModelGroupRef
public IModelGroupRef getModelGroupRef()
getSimpleTypeDef
public ISimpleTypeDef getSimpleTypeDef()
- Gets the simple type definition.
- Returns:
- (optional). Returns the inlined simple type definition of a
restriction.
collectRefsForCreation
public void collectRefsForCreation(IJobRefs aJobRefs)