public abstract class IdentityConstraint
extends java.lang.Object
implements org.apache.xerces.xs.XSIDCDefinition
Modifier and Type | Field and Description |
---|---|
protected XSAnnotationImpl[] |
fAnnotations |
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 int |
fNumAnnotations |
protected Selector |
fSelector
Selector.
|
protected short |
type
type
|
Modifier | Constructor and Description |
---|---|
protected |
IdentityConstraint(java.lang.String namespace,
java.lang.String identityConstraintName,
java.lang.String elemName)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(XSAnnotationImpl annotation) |
void |
addField(Field field)
Adds a field.
|
boolean |
equals(IdentityConstraint id) |
org.apache.xerces.xs.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.
|
org.apache.xerces.xs.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. |
org.apache.xerces.xs.XSNamespaceItem |
getNamespaceItem()
A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
null otherwise. |
org.apache.xerces.xs.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.
|
protected short type
protected final java.lang.String fNamespace
protected final java.lang.String fIdentityConstraintName
protected final java.lang.String fElementName
protected Selector fSelector
protected int fFieldCount
protected Field[] fFields
protected XSAnnotationImpl[] fAnnotations
protected int fNumAnnotations
protected IdentityConstraint(java.lang.String namespace, java.lang.String identityConstraintName, java.lang.String elemName)
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.Object
public boolean equals(IdentityConstraint id)
public short getType()
getType
in interface org.apache.xerces.xs.XSObject
public java.lang.String getName()
name
of this XSObject
depending on the
XSObject
type.getName
in interface org.apache.xerces.xs.XSObject
public java.lang.String getNamespace()
null
if it is
unspecified. defines how a namespace URI is attached to schema
components.getNamespace
in interface org.apache.xerces.xs.XSObject
public short getCategory()
getCategory
in interface org.apache.xerces.xs.XSIDCDefinition
public java.lang.String getSelectorStr()
getSelectorStr
in interface org.apache.xerces.xs.XSIDCDefinition
public org.apache.xerces.xs.StringList getFieldStrs()
getFieldStrs
in interface org.apache.xerces.xs.XSIDCDefinition
public org.apache.xerces.xs.XSIDCDefinition getRefKey()
getRefKey
in interface org.apache.xerces.xs.XSIDCDefinition
public org.apache.xerces.xs.XSObjectList getAnnotations()
getAnnotations
in interface org.apache.xerces.xs.XSIDCDefinition
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObject
null
otherwise.getNamespaceItem
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespaceItem()
public void addAnnotation(XSAnnotationImpl annotation)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.