org.apache.xerces.impl.xs.identity
Class IdentityConstraint
java.lang.Object
org.apache.xerces.impl.xs.identity.IdentityConstraint
- org.apache.xerces.xs.XSIDCDefinition
public abstract class IdentityConstraint
extends java.lang.Object
implements org.apache.xerces.xs.XSIDCDefinition
Base class of Schema identity constraint.
$Id: IdentityConstraint.java 320527 2005-06-23 19:16:20Z mrglavas $
IdentityConstraint(String namespace, String identityConstraintName, String elemName) - Default constructor.
|
fElementName
protected String fElementName
name of owning element
fFieldCount
protected int fFieldCount
Field count.
fFields
protected Field[] fFields
Fields.
fIdentityConstraintName
protected String fIdentityConstraintName
Identity constraint name.
fNamespace
protected String fNamespace
target namespace
fNumAnnotations
protected int fNumAnnotations
fSelector
protected Selector fSelector
Selector.
type
protected short type
type
IdentityConstraint
protected IdentityConstraint(String namespace,
String identityConstraintName,
String elemName)
Default constructor.
addField
public void addField(Field field)
Adds a field.
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()
Optional. Annotation.
- getAnnotations in interface org.apache.xerces.xs.XSIDCDefinition
getCategory
public short getCategory()
{identity-constraint category} One of key, keyref or unique.
- getCategory in interface org.apache.xerces.xs.XSIDCDefinition
getElementName
public String getElementName()
getFieldAt
public Field getFieldAt(int index)
Returns the field at the specified index.
getFieldCount
public int getFieldCount()
Returns the field count.
getFieldStrs
public org.apache.xerces.xs.StringList getFieldStrs()
{fields} A non-empty list of restricted XPath ([XPath]) expressions.
- getFieldStrs in interface org.apache.xerces.xs.XSIDCDefinition
getIdentityConstraintName
public String getIdentityConstraintName()
Returns the identity constraint name.
getName
public String getName()
The name
of this XSObject
depending on the
XSObject
type.
- getName in interface org.apache.xerces.xs.XSObject
getNamespace
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.
- getNamespace in interface org.apache.xerces.xs.XSObject
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
- getNamespaceItem in interface org.apache.xerces.xs.XSObject
org.apache.xerces.xs.XSObject.getNamespaceItem()
getRefKey
public org.apache.xerces.xs.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.
- getRefKey in interface org.apache.xerces.xs.XSIDCDefinition
getSelector
public Selector getSelector()
Returns the selector.
getSelectorStr
public String getSelectorStr()
{selector} A restricted XPath ([XPath]) expression
- getSelectorStr in interface org.apache.xerces.xs.XSIDCDefinition
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
- getType in interface org.apache.xerces.xs.XSObject
setSelector
public void setSelector(Selector selector)
Sets the selector.
toString
public String toString()
Returns a string representation of this object.
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.