|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.xs.impl.XSObjectImpl
org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl
org.apache.ws.jaxme.xs.impl.XSIdentityConstraintImpl
Default implementation of the XSIdentityConstraint.
| Constructor Summary | |
protected |
XSIdentityConstraintImpl(XSElement pParent,
XsEKey key)
|
protected |
XSIdentityConstraintImpl(XSElement pParent,
XsEUnique unique)
|
| Method Summary | |
XSAnnotation[] |
getAnnotations()
Returns the array of annotations. |
XSElementOrAttrRef[][] |
getMatchCriteria()
Returns an array of references to element and attributes. |
java.lang.String |
getName()
Returns the name of this constraint. |
boolean |
isUnique()
Return true if every element of the key is required when matching a node. |
void |
validate()
Validates the objects internal state. |
| Methods inherited from class org.apache.ws.jaxme.xs.impl.XSOpenAttrsImpl |
getOpenAttributes |
| Methods inherited from class org.apache.ws.jaxme.xs.impl.XSObjectImpl |
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ws.jaxme.xs.XSOpenAttrs |
getOpenAttributes |
| Methods inherited from interface org.apache.ws.jaxme.xs.XSObject |
getLocator, getParentObject, getXSSchema, isTopLevelObject |
| Constructor Detail |
protected XSIdentityConstraintImpl(XSElement pParent,
XsEKey key)
throws org.xml.sax.SAXException
protected XSIdentityConstraintImpl(XSElement pParent,
XsEUnique unique)
throws org.xml.sax.SAXException
| Method Detail |
public XSAnnotation[] getAnnotations()
XSIdentityConstraint
getAnnotations in interface XSIdentityConstraintpublic java.lang.String getName()
XSIdentityConstraint
getName in interface XSIdentityConstraintgetName()public boolean isUnique()
XSIdentityConstraint
isUnique in interface XSIdentityConstraintisUnique()public XSElementOrAttrRef[][] getMatchCriteria()
XSIdentityConstraintThe result is a two dimensional array, the first dimension corresponds to each xs:field used to declare the constraint. The second dimension is for each 'or' used within the fields xpath query.
Only tags and attributes that were matched by the xpath will be in the result, any xpath that fails to match anything will not be stored in this array.
getMatchCriteria in interface XSIdentityConstraintgetMatchCriteria()
public void validate()
throws org.xml.sax.SAXException
XSObjectValidates the objects internal state.
validate in interface XSObjectvalidate in class XSObjectImplorg.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||