Package org.apache.xmlbeans
Interface SchemaIdentityConstraint
- All Superinterfaces:
- SchemaAnnotated,- SchemaComponent
- All Known Implementing Classes:
- SchemaIdentityConstraintImpl
public interface SchemaIdentityConstraint extends SchemaComponent, SchemaAnnotated
Represents an identity constraint definition.
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classSchemaIdentityConstraint.RefUsed to allow on-demand loading of identity constraints.
- 
Field SummaryFields Modifier and Type Field Description static intCC_KEYA xs:key constraint.static intCC_KEYREFA xs:keyRef constraint.static intCC_UNIQUEA xs:unique constraint.Fields inherited from interface org.apache.xmlbeans.SchemaComponentANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE
- 
Method SummaryModifier and Type Method Description intgetConstraintCategory()Return the constraint category.ObjectgetFieldPath(int index)Return a compiled xpath object for the field.String[]getFields()Return (a copy of) the xpaths for all the fields.Map<String,String>getNSMap()Return a read-only copy of the namespace map.SchemaIdentityConstraintgetReferencedKey()Returns the key that a key ref refers to.StringgetSelector()Return the selector xpath as a string.ObjectgetSelectorPath()Return a compiled xpath object for the selector.ObjectgetUserData()Returns user-specific information.Methods inherited from interface org.apache.xmlbeans.SchemaComponentgetComponentRef, getComponentType, getName, getSourceName, getTypeSystem
- 
Field Details- 
CC_KEYstatic final int CC_KEYA xs:key constraint. SeegetConstraintCategory().- See Also:
- Constant Field Values
 
- 
CC_KEYREFstatic final int CC_KEYREFA xs:keyRef constraint. SeegetConstraintCategory().- See Also:
- Constant Field Values
 
- 
CC_UNIQUEstatic final int CC_UNIQUEA xs:unique constraint. SeegetConstraintCategory().- See Also:
- Constant Field Values
 
 
- 
- 
Method Details- 
getSelectorString getSelector()Return the selector xpath as a string.
- 
getSelectorPathObject getSelectorPath()Return a compiled xpath object for the selector.
- 
getFieldsString[] getFields()Return (a copy of) the xpaths for all the fields.
- 
getFieldPathReturn a compiled xpath object for the field.
- 
getNSMapReturn 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
- 
getConstraintCategoryint getConstraintCategory()
- 
getReferencedKeySchemaIdentityConstraint getReferencedKey()Returns the key that a key ref refers to. Only valid for keyrefs.
- 
getUserDataObject getUserData()Returns user-specific information.- See Also:
- SchemaBookmark
 
 
-