|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.xerces.impl.xs.identity.IdentityConstraint
Base class of Schema identity constraint.
| Field Summary | |
protected java.lang.String |
fElementName
name of owning element |
protected int |
fFieldCount
Field count. |
protected Field[] |
fFields
Fields. |
protected java.lang.String |
fIdentityConstraintName
Identity constraint name. |
protected java.lang.String |
fNamespace
target namespace |
protected Selector |
fSelector
Selector. |
protected short |
type
type |
| Fields inherited from interface org.apache.xerces.impl.xs.psvi.XSIDCDefinition |
IC_KEY, IC_KEYREF, IC_UNIQUE |
| Constructor Summary | |
protected |
IdentityConstraint(java.lang.String namespace,
java.lang.String identityConstraintName,
java.lang.String elemName)
Default constructor. |
| Method Summary | |
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. |
java.lang.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. |
java.lang.String |
getIdentityConstraintName()
Returns the identity constraint name. |
java.lang.String |
getName()
The name of this XSObject depending on the
XSObject type. |
java.lang.String |
getNamespace()
The namespace URI of this node, or null if it is
unspecified. |
XSNamespaceItem |
getNamespaceItem()
A namespace schema information itemcorresponding to the target namespace of the component, if it's globally declared; or null otherwise. |
XSIDCDefinition |
getRefKey()
{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise. |
Selector |
getSelector()
Returns the selector. |
java.lang.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. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected short type
protected java.lang.String fNamespace
protected java.lang.String fIdentityConstraintName
protected java.lang.String fElementName
protected Selector fSelector
protected int fFieldCount
protected Field[] fFields
| Constructor Detail |
protected IdentityConstraint(java.lang.String namespace,
java.lang.String identityConstraintName,
java.lang.String elemName)
| Method Detail |
public java.lang.String getIdentityConstraintName()
public void setSelector(Selector selector)
public Selector getSelector()
public void addField(Field field)
public int getFieldCount()
public Field getFieldAt(int index)
public java.lang.String getElementName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(IdentityConstraint id)
public short getType()
getType in interface XSObjectpublic java.lang.String getName()
name of this XSObject depending on the
XSObject type.getName in interface XSObjectpublic java.lang.String getNamespace()
null if it is
unspecified. defines how a namespace URI is attached to schema
components.getNamespace in interface XSObjectpublic short getCategory()
getCategory in interface XSIDCDefinitionpublic java.lang.String getSelectorStr()
getSelectorStr in interface XSIDCDefinitionpublic StringList getFieldStrs()
getFieldStrs in interface XSIDCDefinitionpublic XSIDCDefinition getRefKey()
getRefKey in interface XSIDCDefinitionpublic XSObjectList getAnnotations()
getAnnotations in interface XSIDCDefinitionpublic XSNamespaceItem getNamespaceItem()
XSObjectgetNamespaceItem in interface XSObjectXSObject.getNamespaceItem()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||