org.apache.xerces.impl.xs.identity
public abstract class IdentityConstraint extends Object implements XSIDCDefinition
Version: $Id: IdentityConstraint.java,v 1.12 2005/06/23 19:16:20 mrglavas Exp $
| Field Summary | |
|---|---|
| protected XSAnnotationImpl[] | fAnnotations |
| protected String | fElementName name of owning element |
| protected int | fFieldCount Field count. |
| protected Field[] | fFields Fields. |
| protected String | fIdentityConstraintName Identity constraint name. |
| protected String | fNamespace target namespace |
| protected int | fNumAnnotations |
| protected Selector | fSelector Selector. |
| protected short | type type |
| Constructor Summary | |
|---|---|
| protected | IdentityConstraint(String namespace, String identityConstraintName, String elemName) Default constructor. |
| Method Summary | |
|---|---|
| void | addAnnotation(XSAnnotationImpl annotation) |
| void | addField(Field field) Adds a field. |
| boolean | equals(IdentityConstraint id) |
| XSObjectList | getAnnotations()
Optional. |
| short | getCategory()
{identity-constraint category} One of key, keyref or unique. |
| String | getElementName() |
| Field | getFieldAt(int index) Returns the field at the specified index. |
| int | getFieldCount() Returns the field count. |
| StringList | getFieldStrs()
{fields} A non-empty list of restricted XPath ([XPath]) expressions. |
| String | getIdentityConstraintName() Returns the identity constraint name. |
| String | getName()
The name of this XSObject depending on the
XSObject type. |
| String | getNamespace()
The namespace URI of this node, or null if it is
unspecified. defines how a namespace URI is attached to schema
components. |
| XSNamespaceItem | getNamespaceItem() |
| XSIDCDefinition | getRefKey()
{referenced key} Required if {identity-constraint category} is keyref,
forbidden otherwise. |
| Selector | getSelector() Returns the selector. |
| String | getSelectorStr()
{selector} A restricted XPath ([XPath]) expression |
| short | getType()
Get the type of the object, i.e ELEMENT_DECLARATION. |
| void | setSelector(Selector selector) Sets the selector. |
| String | toString() Returns a string representation of this object. |
name of this XSObject depending on the
XSObject type.null if it is
unspecified. defines how a namespace URI is attached to schema
components.See Also: org.apache.xerces.xs.XSObject#getNamespaceItem()