org.exolab.castor.xml.schema
public abstract class IdentityConstraint extends Annotated
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:32 $
Constructor Summary | |
---|---|
protected | IdentityConstraint(String name)
Constructor used by sub-classes. |
Method Summary | |
---|---|
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. |
Parameters: name, the name for the IdentityConstraint. Must not be null.
Parameters: field the IdentityField to add.
Returns: an Enumeration of the IdentityField objects contain within this IdentityConstraint.
Returns: the Id of this IdentityConstraint, or null if no Id has been set.
Returns: the name of this IdentityConstraint
Returns: the IdentitySelector of this IdentityConstraint
Returns: the type of this Schema Structure
Returns: true if the IdentityField was contained within this IdentityConstraint, otherwise false.
Parameters: id the Id for this IdentityConstraint.
Parameters: name the name for this IdentityConstraint. Must not be null.
Throws: SchemaException if name is null.
Parameters: selector the Selector for this IdentityConstraint. Must not be null.
Throws: SchemaException if selector is null.
Throws: ValidationException when this Schema definition is invalid.