public abstract class IdentityConstraint extends Object implements XSIDCDefinition
Modifier and Type | Field and Description |
---|---|
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
|
IC_KEY, IC_KEYREF, IC_UNIQUE
Modifier | Constructor and Description |
---|---|
protected |
IdentityConstraint(String namespace,
String identityConstraintName,
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) |
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.
|
protected short type
protected final String fNamespace
protected final String fIdentityConstraintName
protected final String fElementName
protected Selector fSelector
protected int fFieldCount
protected Field[] fFields
protected XSAnnotationImpl[] fAnnotations
protected int fNumAnnotations
public String getIdentityConstraintName()
public void setSelector(Selector selector)
public Selector getSelector()
public void addField(Field field)
public int getFieldCount()
public Field getFieldAt(int index)
public String getElementName()
public String toString()
public boolean equals(IdentityConstraint id)
public short getType()
public String getName()
name
of this XSObject
depending on the
XSObject
type.public String getNamespace()
null
if it is
unspecified. defines how a namespace URI is attached to schema
components.getNamespace
in interface XSObject
public short getCategory()
getCategory
in interface XSIDCDefinition
public String getSelectorStr()
getSelectorStr
in interface XSIDCDefinition
public StringList getFieldStrs()
getFieldStrs
in interface XSIDCDefinition
public XSIDCDefinition getRefKey()
getRefKey
in interface XSIDCDefinition
public XSObjectList getAnnotations()
getAnnotations
in interface XSIDCDefinition
public XSNamespaceItem getNamespaceItem()
XSObject
null
otherwise.getNamespaceItem
in interface XSObject
XSObject.getNamespaceItem()
public void addAnnotation(XSAnnotationImpl annotation)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.