Package org.apache.xmlbeans
Interface SchemaIdentityConstraint
- All Superinterfaces:
SchemaAnnotated
,SchemaComponent
- All Known Implementing Classes:
SchemaIdentityConstraintImpl
Represents an identity constraint definition.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Used to allow on-demand loading of identity constraints. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A xs:key constraint.static final int
A xs:keyRef constraint.static final int
A xs:unique constraint.Fields inherited from interface org.apache.xmlbeans.SchemaComponent
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the constraint category.getFieldPath
(int index) Return a compiled xpath object for the field.String[]
Return (a copy of) the xpaths for all the fields.getNSMap()
Return a read-only copy of the namespace map.Returns the key that a key ref refers to.Return the selector xpath as a string.Return a compiled xpath object for the selector.Returns user-specific information.Methods inherited from interface org.apache.xmlbeans.SchemaAnnotated
getAnnotation
Methods inherited from interface org.apache.xmlbeans.SchemaComponent
getComponentRef, getComponentType, getName, getSourceName, getTypeSystem
-
Field Details
-
CC_KEY
static final int CC_KEYA xs:key constraint. SeegetConstraintCategory()
.- See Also:
-
CC_KEYREF
static final int CC_KEYREFA xs:keyRef constraint. SeegetConstraintCategory()
.- See Also:
-
CC_UNIQUE
static final int CC_UNIQUEA xs:unique constraint. SeegetConstraintCategory()
.- See Also:
-
-
Method Details
-
getSelector
String getSelector()Return the selector xpath as a string. -
getSelectorPath
Object getSelectorPath()Return a compiled xpath object for the selector. -
getFields
String[] getFields()Return (a copy of) the xpaths for all the fields. -
getFieldPath
Return a compiled xpath object for the field. -
getNSMap
Return a read-only copy of the namespace map. This is the set of prefix to URI mappings that were in scope in the schema at the point at which this constraint was declared -
getConstraintCategory
int getConstraintCategory() -
getReferencedKey
SchemaIdentityConstraint getReferencedKey()Returns the key that a key ref refers to. Only valid for keyrefs. -
getUserData
Object getUserData()Returns user-specific information.- See Also:
-