Package com.saxonica.ee.schema
Class IdentityField
- java.lang.Object
-
- com.saxonica.ee.schema.SchemaStructure
-
- com.saxonica.ee.schema.FieldOrSelector
-
- com.saxonica.ee.schema.IdentityField
-
- All Implemented Interfaces:
UserSchemaComponent
,javax.xml.transform.SourceLocator
,Location
,SchemaComponent
,org.xml.sax.Locator
public class IdentityField extends FieldOrSelector
The field selector for an IdentityConstraint
-
-
Field Summary
-
Fields inherited from class com.saxonica.ee.schema.FieldOrSelector
selectExpression
-
-
Constructor Summary
Constructors Constructor Description IdentityField(java.lang.String xpath)
Creates a new IdentityField.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuiltInAtomicType
getBuiltInBaseType()
int
getCardinality(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType)
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.boolean
isAscending()
boolean
isListValued()
void
setAscending(boolean upwards)
void
setBuiltInBaseType(BuiltInAtomicType builtInBaseType, boolean listValued)
-
Methods inherited from class com.saxonica.ee.schema.FieldOrSelector
getNamespaceContext, getSelectExpression, getSelection, getXPath, getXPathDefaultNamespace, setNamespaceContext, setSelectExpression, setSelection, setXPath, setXPathDefaultNamespace
-
Methods inherited from class com.saxonica.ee.schema.SchemaStructure
elaborate, fixup, getColumnNumber, getComponentAsFunction, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus, validate
-
-
-
-
Method Detail
-
getBuiltInBaseType
public BuiltInAtomicType getBuiltInBaseType()
-
isListValued
public boolean isListValued()
-
setBuiltInBaseType
public void setBuiltInBaseType(BuiltInAtomicType builtInBaseType, boolean listValued)
-
setAscending
public void setAscending(boolean upwards)
-
isAscending
public boolean isAscending()
-
getCardinality
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 visitorcontextItemType
- 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
-
-