public abstract class

IdentityConstraint

extends Object
implements XSIDCDefinition
java.lang.Object
   ↳ org.apache.xerces.impl.xs.identity.IdentityConstraint
Known Direct Subclasses

Class Overview

Base class of Schema identity constraint.

Summary

[Expand]
Inherited Constants
From interface org.apache.xerces.xs.XSIDCDefinition
Fields
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
Protected Constructors
IdentityConstraint(String namespace, String identityConstraintName, String elemName)
Default constructor.
Public Methods
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.
XSNamespaceItem getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.XSIDCDefinition
From interface org.apache.xerces.xs.XSObject

Fields

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

Protected Constructors

protected IdentityConstraint (String namespace, String identityConstraintName, String elemName)

Default constructor.

Public Methods

public void addAnnotation (XSAnnotationImpl annotation)

public void addField (Field field)

Adds a field.

public boolean equals (IdentityConstraint id)

public XSObjectList getAnnotations ()

Optional. Annotation.

public short getCategory ()

{identity-constraint category} One of key, keyref or unique.

public String getElementName ()

public Field getFieldAt (int index)

Returns the field at the specified index.

public int getFieldCount ()

Returns the field count.

public StringList getFieldStrs ()

{fields} A non-empty list of restricted XPath ([XPath]) expressions.

public String getIdentityConstraintName ()

Returns the identity constraint name.

public String getName ()

The name of this XSObject depending on the XSObject type.

public String getNamespace ()

The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

public XSNamespaceItem getNamespaceItem ()

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

public XSIDCDefinition getRefKey ()

{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise. An identity-constraint definition with {identity-constraint category} equal to key or unique.

public Selector getSelector ()

Returns the selector.

public String getSelectorStr ()

{selector} A restricted XPath ([XPath]) expression

public short getType ()

Get the type of the object, i.e ELEMENT_DECLARATION.

public void setSelector (Selector selector)

Sets the selector.

public String toString ()

Returns a string representation of this object.