public abstract class IdentityConstraint extends Annotated
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
Modifier | Constructor and Description |
---|---|
protected |
IdentityConstraint(java.lang.String name)
Constructor used by sub-classes.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(IdentityField field)
Adds the given IdentityField to this IdentityConstraint
|
java.util.Enumeration |
getFields()
Returns an Enumeration of the IdentityFields contained within this
IdentityConstraint.
|
java.lang.String |
getId()
Returns the Id of this IdentityConstraint, or null if no
Id has been set.
|
java.lang.String |
getName()
Returns the name of this IdentityConstraint.
|
IdentitySelector |
getSelector()
Returns the selector of this IdentityConstraint.
|
abstract short |
getStructureType()
Returns the type of this Schema Structure
|
boolean |
removeField(IdentityField field)
Removes the given IdentityField from this IdentityConstraint.
|
void |
setId(java.lang.String id)
Sets the Id for this IdentityConstraint.
|
void |
setName(java.lang.String name)
Sets the name for this IdentityConstraint.
|
void |
setSelector(IdentitySelector selector)
Sets the selector for this IdentityConstraint.
|
void |
validate()
Checks the validity of this Schema defintion.
|
addAnnotation, getAnnotations, removeAnnotation
protected IdentityConstraint(java.lang.String name) throws SchemaException
name
- the name for the IdentityConstraint. Must not be null.SchemaException
public void addField(IdentityField field)
field
- the IdentityField to add.public java.util.Enumeration getFields()
public java.lang.String getId()
public java.lang.String getName()
public IdentitySelector getSelector()
public boolean removeField(IdentityField field)
public void setId(java.lang.String id)
id
- the Id for this IdentityConstraint.public void setName(java.lang.String name) throws SchemaException
name
- the name for this IdentityConstraint. Must not be null.SchemaException
- if name is null.public void setSelector(IdentitySelector selector) throws SchemaException
selector
- the Selector for this IdentityConstraint. Must not be
null.SchemaException
- if selector is null.public abstract short getStructureType()
getStructureType
in class Structure
public void validate() throws ValidationException
validate
in class Structure
ValidationException
- when this Schema definition
is invalid.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com