Class IdentitySelector

All Implemented Interfaces:
Serializable

public class IdentitySelector extends Annotated
A class which represents the selector for an IdentityConstraint
Version:
$Revision: 6230 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
Author:
Keith Visco
See Also:
  • Constructor Details

    • IdentitySelector

      public IdentitySelector(String xpath) throws SchemaException
      Creates a new IdentitySelector.
      Parameters:
      xpath - the xpath for the IdentitySelector. Must not be null.
      Throws:
      SchemaException - if xpath is null.
  • Method Details

    • 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.
    • 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) throws SchemaException
      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.
    • getStructureType

      public short getStructureType()
      Returns the type of this Schema Structure
      Specified by:
      getStructureType in class Structure
      Returns:
      the type of this Schema Structure
    • validate

      public void validate() throws ValidationException
      Checks the validity of this Schema defintion.
      Specified by:
      validate in class Structure
      Throws:
      ValidationException - when this Schema definition is invalid.