org.gxml.xs
Interface SmIdentityConstraint<A,S>

All Superinterfaces:
SmComponent<A,S>

public interface SmIdentityConstraint<A,S>
extends SmComponent<A,S>

Describes key/keyref/unique constraints on the schema.


Method Summary
 SmIdentityConstraintKind getCategory()
          Returns this constraint's {identity-constraint category} property.
 java.util.List<SmRestrictedXPath<S>> getFields()
          Returns the {fields} property of the constraint, a non-empty list of restricted XPath expressions.
 SmIdentityConstraint<A,S> getKeyConstraint()
          In the case of keyref constraints, returns the corresponding key constraint with {identity-constraint category} equal to key or unique.
 SmName<S> getName()
          The {name} and {target namespace} properties.
 SmScope getScope()
          The {scope} property of this component.
 SmRestrictedXPath<S> getSelector()
          Returns the {selector} restricted XPath of the constraint.
 
Methods inherited from interface org.gxml.xs.SmComponent
getLocalName, getTargetNamespace, isAnonymous
 

Method Detail

getCategory

SmIdentityConstraintKind getCategory()
Returns this constraint's {identity-constraint category} property. This is one of key, keyref or unique.


getFields

java.util.List<SmRestrictedXPath<S>> getFields()
Returns the {fields} property of the constraint, a non-empty list of restricted XPath expressions.


getKeyConstraint

SmIdentityConstraint<A,S> getKeyConstraint()
In the case of keyref constraints, returns the corresponding key constraint with {identity-constraint category} equal to key or unique.

Returns:
a SmIdentityConstraint or null

getName

SmName<S> getName()
Description copied from interface: SmComponent
The {name} and {target namespace} properties.

Specified by:
getName in interface SmComponent<A,S>

getScope

SmScope getScope()
Description copied from interface: SmComponent
The {scope} property of this component.

Specified by:
getScope in interface SmComponent<A,S>

getSelector

SmRestrictedXPath<S> getSelector()
Returns the {selector} restricted XPath of the constraint.



Copyright © 2009 TIBCO Software Inc. All Rights Reserved.