|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.schema.cmp.Component org.jbind.xml.schema.constraint.IdentityConstraintComponent
Constructor Summary | |
IdentityConstraintComponent(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName)
|
Method Summary | |
void |
accept(IComponentVisitor aVisitor)
Accepts a visitor. |
protected IKey |
createKey(IDataImpl aData,
boolean aNullAllowed,
IConstraintViolations aViolations)
|
IAnyType |
getDataType()
Gets the type of the data that is constrained. |
int |
getNbFields()
|
IXPath |
getSelector()
|
ISymbolspace |
getSymbolspace()
Gets the symbol space. |
boolean |
isFinal()
Indicates if the constraint must not be further restricted. |
boolean |
isReference()
Checks if this component is defined as a reference to another component. |
boolean |
isRestriction(IConstraint aConstraint)
Checks if this constraint is a restriction of the specified constraint. |
void |
localCheck(ICheckContext aCheckContext,
IAnyTypeData aData,
IConstraintViolations aViolations)
Checks if the specified data satisfies the constraint locally. |
protected java.util.Iterator |
select(IAnyTypeData aData)
|
protected java.util.Iterator |
select(IDataImpl aData)
|
void |
setDataType(IAnyType aType)
Sets the type of the data that is constrained. |
void |
setFields(java.util.List aFields)
|
void |
setSelector(IXPath anXPath)
|
void |
validate(IConstraintViolations aViolations)
Validates the component. |
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 |
addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, isAnonymous, isTopLevelComponent, setBindings, setParentComponent |
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo |
getAnnotation, getPrefixToNamespaceMapping |
Methods inherited from interface org.jbind.xml.base.IHasLocation |
getLocation |
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes |
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute |
Methods inherited from interface org.jbind.xml.core.constraint.IConstraint |
getConstraintType, globalCheck |
Constructor Detail |
public IdentityConstraintComponent(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName)
Method Detail |
public IAnyType getDataType()
IIdentityConstraint
getDataType
in interface IIdentityConstraint
public void setDataType(IAnyType aType)
IIdentityConstraint
setDataType
in interface IIdentityConstraint
aType
- (optional).public ISymbolspace getSymbolspace()
IComponent
getSymbolspace
in interface IComponent
public void accept(IComponentVisitor aVisitor)
IComponent
visitComplexTypeStart
and visitComplexTypeEnd
).
accept
in interface IComponent
aVisitor
- (required).public void localCheck(ICheckContext aCheckContext, IAnyTypeData aData, IConstraintViolations aViolations)
IConstraint
localCheck
in interface IConstraint
aData
- (required).aViolations
- (required).public boolean isRestriction(IConstraint aConstraint)
IConstraint
isRestriction
in interface IConstraint
aConstraint
- (required).
true
iff this constraint is a restriction of
the specified constraint.public boolean isFinal()
IConstraint
isFinal
in interface IConstraint
true
iff the constraint can not be restricted.protected java.util.Iterator select(IAnyTypeData aData) throws XmlException
XmlException
protected java.util.Iterator select(IDataImpl aData) throws XmlException
XmlException
protected IKey createKey(IDataImpl aData, boolean aNullAllowed, IConstraintViolations aViolations) throws XmlException
XmlException
public void setFields(java.util.List aFields)
setFields
in interface IIdentityConstraintComponent
public IXPath getSelector()
getSelector
in interface IIdentityConstraintComponent
public void setSelector(IXPath anXPath)
setSelector
in interface IIdentityConstraintComponent
public int getNbFields()
getNbFields
in interface IIdentityConstraintComponent
public boolean isReference()
IComponent
isReference
in interface IComponent
true
iff this component is a reference to
another component.public void validate(IConstraintViolations aViolations)
IComponent
validate
in interface IComponent
aViolations
- (required).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |