org.exolab.castor.xml.schema

Class IdentitySelector

public class IdentitySelector extends Annotated

A class which represents the selector for an IdentityConstraint

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:32 $

Author: Keith Visco

Constructor Summary
IdentitySelector(String xpath)
Creates a new IdentitySelector.
Method Summary
StringgetId()
Returns the Id of this IdentitySelector, or null if no Id has been set.
shortgetStructureType()
Returns the type of this Schema Structure
StringgetXPath()
Returns the XPath of this IdentitySelector.
voidsetId(String id)
Sets the Id for this IdentitySelector.
voidsetXPath(String xpath)
Sets the XPath expression for this Selector.
voidvalidate()
Checks the validity of this Schema defintion.

Constructor Detail

IdentitySelector

public IdentitySelector(String xpath)
Creates a new IdentitySelector.

Parameters: xpath, the xpath for the IdentitySelector. Must not be null.

Throws: SchemaException if xpath is null.

Method Detail

getId

public String getId()
Returns the Id of this IdentitySelector, or null if no Id has been set.

Returns: the Id of this IdentitySelector, or null if no Id has been set.

getStructureType

public short getStructureType()
Returns the type of this Schema Structure

Returns: the type of this Schema Structure

getXPath

public String getXPath()
Returns the XPath of this IdentitySelector. This value will never be null.

Returns: the XPath of this IdentitySelector.

setId

public void setId(String id)
Sets the Id for this IdentitySelector.

Parameters: id the Id for this IdentitySelector.

setXPath

public void setXPath(String xpath)
Sets the XPath expression for this Selector.

Parameters: xpath the XPath expression for this IdentitySelector. Must not be null.

Throws: SchemaException if xpath is null.

validate

public void validate()
Checks the validity of this Schema defintion.

Throws: ValidationException when this Schema definition is invalid.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com