org.jbind.xml.schema.element
Class SimpleTypeDef
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.Named
org.jbind.xml.schema.element.TypeDef
org.jbind.xml.schema.element.SimpleTypeDef
- All Implemented Interfaces:
- IAnnotated, IComponentJobHelper, IElement, IHasBindingAttributes, IHasLocation, IJobHelper, INamed, INode, IOpenAttributes, IParent, IRedefinable, ISchemaDataAdder, ISimpleTypeDef, ISourceInfo, ITopLevelElement, ITopLevelJobHelper, ITypeDef, IXmlElement, IXmlNode
- public class SimpleTypeDef
- extends TypeDef
- implements ISimpleTypeDef
Method Summary |
void |
addSchemaData(IComponentStore aComponentStore,
IComponent aComponent,
IConstraintViolations aViolations)
Adds data from the schema to the specified component. |
void |
collectConstraints(IAnyType aType,
IConstraintViolations aViolations)
Collects the constraints (facets) of probably nested inlined simple types. |
void |
collectRefsForCompletion(IElementHelper anElementHelper,
IJobRefs aJobRefs)
|
void |
collectRefsForCreation(IJobRefs aJobRefs)
|
void |
collectRefsForValidation(IElementHelper anElementHelper,
IJobRefs aJobRefs)
|
void |
completeComponent(IElementHelper anElementHelper,
IComponent aComponent,
IConstraintViolations aViolations)
|
IComponent |
createComponent(IElementHelper anElementHelper,
IConstraintViolations aViolations)
|
IElement |
doCreateChild(CreationParams aCreationParams)
Hook method to create a child element. |
IRef |
getBaseRef()
|
IRef |
getRedefinedRef()
Gets the reference of the element that was redefined. |
IVariety |
getVariety()
|
void |
redefine(ITopLevelElement aRedefinedElement,
IConstraintViolations aViolations)
|
void |
setRedefinedRef(IRef aRef)
Sets the reference of the element that was redefined by this element. |
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_ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleTypeDef
public SimpleTypeDef(CreationParams aCreationParams,
java.lang.String aRole)
doCreateChild
public 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
getVariety
public IVariety getVariety()
- Specified by:
getVariety
in interface ISimpleTypeDef
validateElement
public void validateElement(IElemValHelper aHelper,
IConstraintViolations aViolations)
- Specified by:
validateElement
in interface IElement
- Overrides:
validateElement
in class TypeDef
collectRefsForCreation
public void collectRefsForCreation(IJobRefs aJobRefs)
- Specified by:
collectRefsForCreation
in interface IComponentJobHelper
collectRefsForCompletion
public void collectRefsForCompletion(IElementHelper anElementHelper,
IJobRefs aJobRefs)
- Specified by:
collectRefsForCompletion
in interface IComponentJobHelper
collectRefsForValidation
public void collectRefsForValidation(IElementHelper anElementHelper,
IJobRefs aJobRefs)
- Specified by:
collectRefsForValidation
in interface IComponentJobHelper
createComponent
public IComponent createComponent(IElementHelper anElementHelper,
IConstraintViolations aViolations)
- Specified by:
createComponent
in interface IComponentJobHelper
completeComponent
public void completeComponent(IElementHelper anElementHelper,
IComponent aComponent,
IConstraintViolations aViolations)
- Specified by:
completeComponent
in interface IComponentJobHelper
addSchemaData
public void addSchemaData(IComponentStore aComponentStore,
IComponent aComponent,
IConstraintViolations aViolations)
- Description copied from interface:
ISchemaDataAdder
- Adds data from the schema to the specified component. Schema data are
default and fixed values as well as facets.
- Specified by:
addSchemaData
in interface ISchemaDataAdder
getBaseRef
public IRef getBaseRef()
- Specified by:
getBaseRef
in interface ISimpleTypeDef
collectConstraints
public void collectConstraints(IAnyType aType,
IConstraintViolations aViolations)
- Description copied from interface:
ISimpleTypeDef
- Collects the constraints (facets) of probably nested inlined simple types.
- Specified by:
collectConstraints
in interface ISimpleTypeDef
- Parameters:
aType
- (required). The type to which the constraints are added.aViolations
- (required).
redefine
public void redefine(ITopLevelElement aRedefinedElement,
IConstraintViolations aViolations)
- Specified by:
redefine
in interface IRedefinable
getRedefinedRef
public IRef getRedefinedRef()
- Description copied from interface:
IRedefinable
- Gets the reference of the element that was redefined.
- Specified by:
getRedefinedRef
in interface IRedefinable
- Returns:
- (optional). If
null
is returned then the redefinable
was not used to redefine an element.
setRedefinedRef
public void setRedefinedRef(IRef aRef)
- Description copied from interface:
IRedefinable
- Sets the reference of the element that was redefined by this element.
- Specified by:
setRedefinedRef
in interface IRedefinable
- Parameters:
aRef
- (required).