Package com.saxonica.ee.schema
Class FieldOrSelector
java.lang.Object
com.saxonica.ee.schema.SchemaStructure
com.saxonica.ee.schema.FieldOrSelector
- All Implemented Interfaces:
UserSchemaComponent
,SourceLocator
,Location
,SchemaComponent
,Locator
- Direct Known Subclasses:
IdentityField
,IdentitySelector
The selector of an IdentityConstraint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the namespace context for evaluating the XPath expressionGet the compiled XPath expressionReturn the compiled XPath expression as a match patterngetXPath()
Return the source XPath expression of this IdentitySelector.Get the XPath default namespacevoid
setNamespaceContext
(NamespaceResolver resolver) Set the namespace context.void
setSelectExpression
(Expression selectExpression) Set the compiled XPath expressionvoid
setSelection
(Pattern selection) Set the compiled XPath expression as a match patternvoid
Sets the XPath expression for this Selector.void
Set the XPath default namespaceMethods 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
-
Field Details
-
selectExpression
Compiled XPath expression
-
-
Constructor Details
-
FieldOrSelector
public FieldOrSelector()
-
-
Method Details
-
getXPath
Return the source XPath expression of this IdentitySelector.- Returns:
- the XPath expression defined in this IdentitySelector.
-
getSelection
Return the compiled XPath expression as a match pattern- Returns:
- the expression as a Pattern object
-
getSelectExpression
Get the compiled XPath expression- Returns:
- the compiled XPath expression
-
setXPath
Sets the XPath expression for this Selector.- Parameters:
xpath
- the XPath expression for this IdentitySelector. Must not be null.
-
setSelection
Set the compiled XPath expression as a match pattern- Parameters:
selection
- the XPath expression compiled into a Pattern object
-
setSelectExpression
Set the compiled XPath expression- Parameters:
selectExpression
- the XPath expression
-
setNamespaceContext
Set the namespace context. This is needed to allow the assertion to be serialized, so that the namespace context can be replicated when it is reloaded.- Parameters:
resolver
- the resolver used to resolve prefixes in the XPath expression to URIs
-
getNamespaceContext
Get the namespace context for evaluating the XPath expression- Returns:
- the namespace resolver used to resolve namespace prefixes in the XPath expression
-
setXPathDefaultNamespace
Set the XPath default namespace- Parameters:
uri
- the XPath default namespace
-
getXPathDefaultNamespace
Get the XPath default namespace- Returns:
- the XPath default namespace
-