org.jbind.xml.schema.cmp
Class ElemRefOrDecl
java.lang.Object
org.jbind.xml.schema.cmp.Component
org.jbind.xml.schema.cmp.Content
org.jbind.xml.schema.cmp.ElemDesc
org.jbind.xml.schema.cmp.ElemRefOrDecl
- All Implemented Interfaces:
- IComponent, IContentDesc, IDataDesc, IDataRefOrDecl, IDefaultTextContentProvider, IElemDesc, IElemRefOrDecl, IHasBindingAttributes, IHasLocation, IHasRange, ISourceInfo
- Direct Known Subclasses:
- ElemDecl, ElemRef
- public abstract class ElemRefOrDecl
- extends ElemDesc
- implements IElemRefOrDecl
Methods inherited from class org.jbind.xml.schema.cmp.Component |
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbind.xml.core.cmp.IComponent |
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent |
myDefault
protected ISimpleData myDefault
myFixed
protected ISimpleData myFixed
myDefaultTextContent
protected java.lang.String myDefaultTextContent
ElemRefOrDecl
public ElemRefOrDecl(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
IRange aRange)
getSymbolspace
public ISymbolspace getSymbolspace()
- Description copied from interface:
IComponent
- Gets the symbol space. A component that is not anonymous has a symbol space.
- Specified by:
getSymbolspace
in interface IComponent
- Returns:
- (optional).
validate
public void validate(IConstraintViolations aViolations)
- Description copied from interface:
IComponent
- Validates the component. This method is called as the last step of the
component construction.
- Specified by:
validate
in interface IComponent
- Parameters:
aViolations
- (required).
createUseState
public IUseState createUseState(IUseState aParent)
- Specified by:
createUseState
in interface IContentDesc
getRange
public IRange getRange(IRef aRef)
- Description copied from interface:
IContentDesc
- Gets the range of possible occurences of the specified element in this use
(and all of its nested subuses).
- Specified by:
getRange
in interface IContentDesc
- Returns:
- (required).
getDefault
public ISimpleData getDefault()
- Description copied from interface:
IDataDesc
- Gets the default value. If a fixed value is specified then it is also returned
as the default value.
- Specified by:
getDefault
in interface IDataDesc
- Returns:
- (optional).
getFixed
public ISimpleData getFixed()
- Description copied from interface:
IDataDesc
- Gets the fixed value. If a fixed value is specified then it is also returned
as the default value.
- Specified by:
getFixed
in interface IDataDesc
- Returns:
- (optional).
getDefaultTextContent
public java.lang.String getDefaultTextContent()
- Specified by:
getDefaultTextContent
in interface IDefaultTextContentProvider
add
public void add(IElementIdentityConstraint aConstraint)
iterIdentityConstraints
public java.util.Iterator iterIdentityConstraints()
checkIdentityConstraints
public void checkIdentityConstraints(IAnyTypeData aData,
IKeyStore anElementKeys,
IConstraintViolations aViolations)
- Specified by:
checkIdentityConstraints
in interface IElemDesc
collectElemDescs
public void collectElemDescs(java.util.Map anElementDecls,
java.util.List anElemWildcards,
IConstraintViolations aViolations)
- Description copied from interface:
IContentDesc
- Recursively collects the element descriptions that are contained in this
content object. Element declarations with the same name and namespace must
have the same type as well as the same fixed/default values.
- Specified by:
collectElemDescs
in interface IContentDesc
- Parameters:
anElementDecls
- (required). Maps IRef
s to IElemRefOrDecl
.anElemWildcards
- (required). Collects the element wildcards.aViolations
- (required).
replaceSubstitutions
public void replaceSubstitutions(IElemGroupDesc aParent)
- Description copied from interface:
IContentDesc
- Recursively adds this content use to the parent group use. Elements that
can be substituted are replaced by corresponding choice groups.
- Specified by:
replaceSubstitutions
in interface IContentDesc
- Parameters:
aParent
- (required). The group use to which content uses are
added.
doAddToParentWithNewRange
protected void doAddToParentWithNewRange(IRange aRange,
IElemGroupDesc aParent)
- Specified by:
doAddToParentWithNewRange
in class ElemDesc