org.exolab.castor.xml.schema
Class IdentityField
- java.io.Serializable
public class IdentityField
A class which represents the field selector for an IdentityConstraint
$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 |
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.
|
IdentityField
public IdentityField(String xpath)
throws SchemaException
Creates a new IdentityField.
getId
public String getId()
Returns the Id of this IdentityField, or null if no
Id has been set.
- the Id of this IdentityField, or null if no
Id has been set.
getStructureType
public short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface Structure
- the type of this Schema Structure
getXPath
public String getXPath()
Returns the XPath of this IdentityField. This value will
never be null.
- the XPath of this IdentityField.
setId
public void setId(String id)
Sets the Id for this IdentityField.
id
- the Id for this IdentityField.
setXPath
public void setXPath(String xpath)
throws SchemaException
Sets the XPath expression for this Field.
xpath
- the XPath expression for this IdentityField. Must not
be null.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com