|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.IdentityField
public class IdentityField
A class which represents the field selector for an IdentityConstraint
| Field Summary |
|---|
| Fields inherited from class org.exolab.castor.xml.schema.Structure |
|---|
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 |
| Constructor Summary | |
|---|---|
IdentityField(String xpath)
Creates a new IdentityField. |
|
| Method Summary | |
|---|---|
String |
getId()
Returns the Id of this IdentityField, or null if no Id has been set. |
short |
getStructureType()
Returns the type of this Schema Structure |
String |
getXPath()
Returns the XPath of this IdentityField. |
void |
setId(String id)
Sets the Id for this IdentityField. |
void |
setXPath(String xpath)
Sets the XPath expression for this Field. |
void |
validate()
Checks the validity of this Schema defintion. |
| Methods inherited from class org.exolab.castor.xml.schema.Annotated |
|---|
addAnnotation, getAnnotations, removeAnnotation |
| Methods inherited from class org.exolab.castor.xml.schema.Structure |
|---|
isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityField(String xpath)
throws SchemaException
xpath - the xpath for the IdentityField. Must not be null.
SchemaException - if xpath is null.| Method Detail |
|---|
public String getId()
public String getXPath()
public void setId(String id)
id - the Id for this IdentityField.
public void setXPath(String xpath)
throws SchemaException
xpath - the XPath expression for this IdentityField. Must not
be null.
SchemaException - if xpath is null.public short getStructureType()
getStructureType in class Structure
public void validate()
throws ValidationException
validate in class StructureValidationException - when this Schema definition
is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||