Class IdentityField

All Implemented Interfaces:
UserSchemaComponent, SourceLocator, Location, SchemaComponent, Locator

public class IdentityField extends FieldOrSelector
The field selector for an IdentityConstraint
  • Constructor Details Link icon

    • IdentityField Link icon

      public IdentityField(String xpath)
      Creates a new IdentityField.
      Parameters:
      xpath - the xpath for the IdentityField. Must not be null.
  • Method Details Link icon

    • getBuiltInBaseType Link icon

      public BuiltInAtomicType getBuiltInBaseType()
    • isListValued Link icon

      public boolean isListValued()
    • setBuiltInBaseType Link icon

      public void setBuiltInBaseType(BuiltInAtomicType builtInBaseType, boolean listValued)
    • setAscending Link icon

      public void setAscending(boolean upwards)
    • isAscending Link icon

      public boolean isAscending()
    • getCardinality Link icon

      public int getCardinality(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
      Get the static cardinality of the expression, that is the number of nodes the field xpath will select for each node selected by the selector xpath.
      Parameters:
      visitor - the expression visitor
      contextItemType - the type of the context item, and information about whether a context item will always be provided or not
      Returns:
      the static cardinality
      Throws:
      XPathException - if an error is found during the evaluation