org.jbind.xml.schema.element
Class Derivation
java.lang.Object
org.jbind.xml.schema.element.Parent
org.jbind.xml.schema.element.Element
org.jbind.xml.schema.element.OpenAttributes
org.jbind.xml.schema.element.Annotated
org.jbind.xml.schema.element.Derivation
- All Implemented Interfaces:
- IAnnotated, IDerivation, IElement, IHasBindingAttributes, IHasLocation, INode, IOpenAttributes, IParent, ISourceInfo, IXmlElement, IXmlNode
- Direct Known Subclasses:
- ComplexDerivation, SimpleDerivation
- public abstract class Derivation
- extends Annotated
- implements IDerivation
Methods inherited from class org.jbind.xml.schema.element.Element |
acceptAppInfoVisitor, addAttribute, createChild, createGlobalRef, getAttributes, getBindingAttribute, getBoolean, getChildByClass, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalName, getLocalStringBindingAttribute, getLocation, getNamespace, getNamespaceUri, getParent_, getParentHelper, getPrefix, getPrefixToNamespaceMapping, getQName, getSchema, getSchemaDocument, getSchemaElement, getStringBindingAttribute, getSubElement, getTargetNamespace, isTopLevelComponent, iterChildrenByClass, setLocation, setParent_, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Derivation
public Derivation(CreationParams aCreationParams)
doCreateChild
protected IElement doCreateChild(CreationParams aCreationParams)
throws XmlException
- Description copied from class:
Element
- Hook method to create a child element.
- Overrides:
doCreateChild
in class Annotated
- Throws:
XmlException
doCreateAttribute
protected IAttribute doCreateAttribute(ACParams anACParams)
throws XmlException
- Description copied from class:
Element
- Hook method to create an attribute.
- Overrides:
doCreateAttribute
in class Annotated
- Throws:
XmlException
getBaseAttribute
public IRef getBaseAttribute()
- Description copied from interface:
IDerivation
- Gets the base attribute.
- Specified by:
getBaseAttribute
in interface IDerivation
- 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)
- Specified by:
setBaseAttribute
in interface IDerivation
getAttributeInfos
public IAttributeInfos getAttributeInfos()
- Description copied from interface:
IDerivation
- Gets the attribute infos enclosed in the derivation. If it is an
abbreviated derivation then
null
is returned.
- Specified by:
getAttributeInfos
in interface IDerivation
- Returns:
- Attribute infos. (optional)
validateElement
public void validateElement(IElemValHelper aHelper,
IConstraintViolations aViolations)
- Specified by:
validateElement
in interface IElement
- Overrides:
validateElement
in class Annotated