SchemaIdentityConstraint Interface

com.bea.xml
SchemaIdentityConstraint Interface

public interface SchemaIdentityConstraint

    extends SchemaComponent

Represents an identity constraint definition.


All Superinterfaces
SchemaComponent

Field Summary

public static final int
CC_KEY
A xs:key constraint.
public static final int
CC_KEYREF
A xs:keyRef constraint.
public static final int
CC_UNIQUE
A xs:unique constraint.
   
Fields from interface com.bea.xml.SchemaComponent
ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE
 

Method Summary

public int
getConstraintCategory()
Return the constraint category.
public Object
getFieldPath(int index)
Return a compiled xpath object for the field.
public String[]
getFields()
Return (a copy of) the xpaths for all the fields.
public Map
getNSMap()
Return a read-only copy of the namespace map.
public SchemaIdentityConstraint
getReferencedKey()
Returns the key that a key ref refers to.
public String
getSelector()
Return the selector xpath as a string.
public Object
getSelectorPath()
Return a compiled xpath object for the selector.
 
Methods from interface com.bea.xml.SchemaComponent
getComponentRef, getComponentType, getName, getTypeSystem
   

Field Detail

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().

 

Method Detail

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.