SchemaIdentityConstraint Interface
com.bea.xml
SchemaIdentityConstraint Interface
- public interface SchemaIdentityConstraint
extends SchemaComponent
Represents an identity constraint definition.
-
All Superinterfaces
-
SchemaComponent
CC_KEY
public static final int CC_KEY
- A xs:key constraint. See
SchemaIdentityConstraint.getConstraintCategory()
.
CC_KEYREF
public static final int CC_KEYREF
- A xs:keyRef constraint. See
SchemaIdentityConstraint.getConstraintCategory()
.
CC_UNIQUE
public static final int CC_UNIQUE
- A xs:unique constraint. See
SchemaIdentityConstraint.getConstraintCategory()
.
getConstraintCategory() Method
public int getConstraintCategory()
Return the constraint category. Either SchemaIdentityConstraint.CC_KEY
, SchemaIdentityConstraint.CC_KEYREF
,
or SchemaIdentityConstraint.CC_UNIQUE
.
getFieldPath(int) Method
public Object
getFieldPath(int index)
Return a compiled xpath object for the field.
getFields() Method
public String
[] getFields()
Return (a copy of) the xpaths for all the fields.
getNSMap() Method
public Map
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
getReferencedKey() Method
public SchemaIdentityConstraint
getReferencedKey()
Returns the key that a key ref refers to. Only valid for
keyrefs.
getSelector() Method
public String
getSelector()
Return the selector xpath as a string.
getSelectorPath() Method
public Object
getSelectorPath()
Return a compiled xpath object for the selector.