Public Member Functions | |
| void | addField (IdentityField field) |
| Enumeration | getFields () |
| String | getId () |
| String | getName () |
| IdentitySelector | getSelector () |
| boolean | removeField (IdentityField field) |
| void | setId (String id) |
| void | setName (String name) throws SchemaException |
| void | setSelector (IdentitySelector selector) throws SchemaException |
| abstract short | getStructureType () |
| void | validate () throws ValidationException |
Protected Member Functions | |
| IdentityConstraint (String name) throws SchemaException | |
The base class for the XML Schema Identity Constraints (key, keyref, unique).
| org.exolab.castor.xml.schema.IdentityConstraint.IdentityConstraint | ( | String | name | ) | throws SchemaException [protected] |
Constructor used by sub-classes. Creates a new IdentityConstraint.
| name,the | name for the IdentityConstraint. Must not be null. |
References org.exolab.castor.xml.schema.IdentityConstraint.setName().
| void org.exolab.castor.xml.schema.IdentityConstraint.addField | ( | IdentityField | field | ) |
Adds the given IdentityField to this IdentityConstraint
| field | the IdentityField to add. |
Referenced by org.exolab.castor.xml.schema.reader.IdentityConstraintUnmarshaller.endElement().
| Enumeration org.exolab.castor.xml.schema.IdentityConstraint.getFields | ( | ) |
Returns an Enumeration of the IdentityFields contained within this IdentityConstraint.
| String org.exolab.castor.xml.schema.IdentityConstraint.getId | ( | ) |
Returns the Id of this IdentityConstraint, or null if no Id has been set.
| String org.exolab.castor.xml.schema.IdentityConstraint.getName | ( | ) |
Returns the name of this IdentityConstraint. This value will never be null.
| IdentitySelector org.exolab.castor.xml.schema.IdentityConstraint.getSelector | ( | ) |
Returns the selector of this IdentityConstraint.
| abstract short org.exolab.castor.xml.schema.IdentityConstraint.getStructureType | ( | ) | [pure virtual] |
Returns the type of this Schema Structure
Implements org.exolab.castor.xml.schema.Structure.
Implemented in org.exolab.castor.xml.schema.Key, org.exolab.castor.xml.schema.KeyRef, and org.exolab.castor.xml.schema.Unique.
| boolean org.exolab.castor.xml.schema.IdentityConstraint.removeField | ( | IdentityField | field | ) |
Removes the given IdentityField from this IdentityConstraint.
| void org.exolab.castor.xml.schema.IdentityConstraint.setId | ( | String | id | ) |
Sets the Id for this IdentityConstraint.
| id | the Id for this IdentityConstraint. |
| void org.exolab.castor.xml.schema.IdentityConstraint.setName | ( | String | name | ) | throws SchemaException |
Sets the name for this IdentityConstraint.
| name | the name for this IdentityConstraint. Must not be null. |
| SchemaException | if name is null. |
Referenced by org.exolab.castor.xml.schema.IdentityConstraint.IdentityConstraint().
| void org.exolab.castor.xml.schema.IdentityConstraint.setSelector | ( | IdentitySelector | selector | ) | throws SchemaException |
Sets the selector for this IdentityConstraint.
| selector | the Selector for this IdentityConstraint. Must not be null. |
| SchemaException | if selector is null. |
Referenced by org.exolab.castor.xml.schema.reader.IdentityConstraintUnmarshaller.endElement().
| void org.exolab.castor.xml.schema.IdentityConstraint.validate | ( | ) | throws ValidationException [virtual] |
Checks the validity of this Schema defintion.
| ValidationException | when this Schema definition is invalid. |
Implements org.exolab.castor.xml.schema.Structure.
1.7.0