org.exolab.castor.xml.schema
Class IdentityConstraint
- java.io.Serializable
public abstract class IdentityConstraint
The base class for the XML Schema Identity Constraints
(key, keyref, unique).
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:32 $
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 |
void | addField(IdentityField field)- Adds the given IdentityField to this IdentityConstraint
|
Enumeration | getFields()- Returns an Enumeration of the IdentityFields contained within this
IdentityConstraint.
|
String | getId()- Returns the Id of this IdentityConstraint, or null if no
Id has been set.
|
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(String id)- Sets the Id for this IdentityConstraint.
|
void | setName(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.
|
IdentityConstraint
protected IdentityConstraint(String name)
throws SchemaException Constructor used by sub-classes. Creates a new IdentityConstraint.
addField
public void addField(IdentityField field)
Adds the given IdentityField to this IdentityConstraint
field - the IdentityField to add.
getFields
public Enumeration getFields()
Returns an Enumeration of the IdentityFields contained within this
IdentityConstraint.
- an Enumeration of the IdentityField objects contain within
this IdentityConstraint.
getId
public String getId()
Returns the Id of this IdentityConstraint, or null if no
Id has been set.
- the Id of this IdentityConstraint, or null if no
Id has been set.
getName
public String getName()
Returns the name of this IdentityConstraint. This value will
never be null.
- the name of this IdentityConstraint
getSelector
public IdentitySelector getSelector()
Returns the selector of this IdentityConstraint.
- the IdentitySelector of this IdentityConstraint
getStructureType
public abstract short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface Structure
- the type of this Schema Structure
removeField
public boolean removeField(IdentityField field)
Removes the given IdentityField from this IdentityConstraint.
- true if the IdentityField was contained within this
IdentityConstraint, otherwise false.
setId
public void setId(String id)
Sets the Id for this IdentityConstraint.
id - the Id for this IdentityConstraint.
setName
public void setName(String name)
throws SchemaException Sets the name for this IdentityConstraint.
name - the name for this IdentityConstraint. Must not be null.
setSelector
public void setSelector(IdentitySelector selector)
throws SchemaException Sets the selector for this IdentityConstraint.
selector - the Selector for this IdentityConstraint. Must not be
null.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com