|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IIdentityConstraintpublic void setDataType(IAnyType aType)
IIdentityConstraint
setDataType in interface IIdentityConstraintaType - (optional).public ISymbolspace getSymbolspace()
IComponent
getSymbolspace in interface IComponentpublic void accept(IComponentVisitor aVisitor)
IComponentvisitComplexTypeStart and visitComplexTypeEnd).
accept in interface IComponentaVisitor - (required).
public void localCheck(ICheckContext aCheckContext,
IAnyTypeData aData,
IConstraintViolations aViolations)
IConstraint
localCheck in interface IConstraintaData - (required).aViolations - (required).public boolean isRestriction(IConstraint aConstraint)
IConstraint
isRestriction in interface IConstraintaConstraint - (required).
true iff this constraint is a restriction of
the specified constraint.public boolean isFinal()
IConstraint
isFinal in interface IConstrainttrue 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
XmlExceptionpublic void setFields(java.util.List aFields)
setFields in interface IIdentityConstraintComponentpublic IXPath getSelector()
getSelector in interface IIdentityConstraintComponentpublic void setSelector(IXPath anXPath)
setSelector in interface IIdentityConstraintComponentpublic int getNbFields()
getNbFields in interface IIdentityConstraintComponentpublic boolean isReference()
IComponent
isReference in interface IComponenttrue iff this component is a reference to
another component.public void validate(IConstraintViolations aViolations)
IComponent
validate in interface IComponentaViolations - (required).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||