Constructor and Description |
---|
FieldChecker(SelectorWatch parentWatch,
Pattern selection,
AtomicSequence[] currentRow,
int column)
Create a new FieldChecker
|
Modifier and Type | Method and Description |
---|---|
void |
characters(java.lang.CharSequence chars,
Location locationId,
int properties)
Notify character data.
|
void |
close()
The close() method is called immediately before the Watch is destroyed, that is,
when the element whose declaration scopes the constraint implemented by this
Watch goes out of scope.
|
void |
endElement()
Notify the end of an element.
|
void |
notifySelectedAttribute(FleetingNode attribute,
Location locationId)
Notify an attribute that matches the selection.
|
void |
setNamespaceResolver(NamespaceResolver resolver)
Set a NamespaceResolver for use by the FieldChecker
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
Location location,
int properties)
Notify the start of an element
|
boolean |
usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events
|
attribute, comment, endDocument, getConfiguration, getPipelineConfiguration, getSystemId, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnparsedEntity, startContent, startDocument
public FieldChecker(SelectorWatch parentWatch, Pattern selection, AtomicSequence[] currentRow, int column)
parentWatch
- The SelectorWatch to which field values should be
notifiedselection
- The selection (that is, the restricted XPath expression)
used in this field of the constraintcurrentRow
- represents the selected node whose fields are being
evaluatedcolumn
- sequence number for this field within the constraint being
evaluatedpublic void setNamespaceResolver(NamespaceResolver resolver)
resolver
- the namespace resolver to be usedpublic void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class Checker
nameCode
- integer code identifying the name of the element within the name pool.typeCode
- integer code identifying the element's type within the name pool. The value -1
indicates the default type, xs:untyped.location
- location of the start tagproperties
- bit-significant properties of the element node. If there are no revelantXPathException
- if an error occurspublic void notifySelectedAttribute(FleetingNode attribute, Location locationId) throws XPathException
attribute
- the attribute node being notifiedlocationId
- the location for error reporting purposesXPathException
- if a dynamic error occurspublic void characters(java.lang.CharSequence chars, Location locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class Checker
chars
- The characterslocationId
- an integer which can be interpreted using a LocationMap to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- Bit significant value. The following bits are defined:
XPathException
- if an error occurspublic void endElement() throws XPathException
Receiver
endElement
in interface Receiver
endElement
in class Checker
XPathException
- if an error occurspublic void close()
public boolean usesTypeAnnotations()
usesTypeAnnotations
in interface Receiver
usesTypeAnnotations
in class Checker
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.