org.jbind.xml.schema.element
Class SimpleRestriction
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.SimpleRestriction
- All Implemented Interfaces:
- IAnnotated, IElement, IHasBindingAttributes, IHasLocation, INode, IOpenAttributes, IParent, ISourceInfo, IXmlElement, IXmlNode
- Direct Known Subclasses:
- RestrictionVariety, SimpleRestrictionDerivation
- public abstract class SimpleRestriction
- extends Annotated
Method Summary |
void |
addSchemaData(IComponentStore aComponentStore,
IComponent aComponent,
IConstraintViolations aViolations)
|
void |
collectConstraints(IAnyType aType,
IConstraintViolations aViolations)
|
void |
collectRefsForCompletion(IElementHelper aHelper,
IJobRefs aJobRefs)
|
void |
collectRefsForCreation(IJobRefs aJobRefs)
|
void |
collectRefsForValidation(IElementHelper aHelper,
IJobRefs aJobRefs)
|
IComponent |
createComponent(IElementHelper anElementHelper,
ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
java.lang.String aRole,
java.util.Set aFinalTypes,
IConstraintViolations aViolations)
|
protected IAttribute |
doCreateAttribute(ACParams anACParams)
Hook method to create an attribute. |
protected IElement |
doCreateChild(CreationParams aCreationParams)
Hook method to create a child element. |
IRef |
getBaseAttribute()
|
ISimpleTypeDef |
getSimpleTypeDef()
|
java.util.Iterator |
iterFacets()
|
protected abstract boolean |
referencedBaseTypeMustNotBeComplex()
|
void |
setBaseAttribute(IRef aRef)
|
void |
validateElement(IElemValHelper aHelper,
IConstraintViolations aViolations)
|
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 |
SimpleRestriction
public SimpleRestriction(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
iterFacets
public java.util.Iterator iterFacets()
getSimpleTypeDef
public ISimpleTypeDef getSimpleTypeDef()
getBaseAttribute
public IRef getBaseAttribute()
validateElement
public void validateElement(IElemValHelper aHelper,
IConstraintViolations aViolations)
- Specified by:
validateElement
in interface IElement
- Overrides:
validateElement
in class Annotated
collectRefsForCreation
public void collectRefsForCreation(IJobRefs aJobRefs)
collectRefsForCompletion
public void collectRefsForCompletion(IElementHelper aHelper,
IJobRefs aJobRefs)
collectRefsForValidation
public void collectRefsForValidation(IElementHelper aHelper,
IJobRefs aJobRefs)
createComponent
public IComponent createComponent(IElementHelper anElementHelper,
ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
java.lang.String aRole,
java.util.Set aFinalTypes,
IConstraintViolations aViolations)
collectConstraints
public void collectConstraints(IAnyType aType,
IConstraintViolations aViolations)
addSchemaData
public void addSchemaData(IComponentStore aComponentStore,
IComponent aComponent,
IConstraintViolations aViolations)
referencedBaseTypeMustNotBeComplex
protected abstract boolean referencedBaseTypeMustNotBeComplex()
setBaseAttribute
public void setBaseAttribute(IRef aRef)