|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.validate.FieldWatch
public class FieldWatch
A FieldWatch is a class that is looking for nodes that match a field selector within a uniqueness or key constraint.
Constructor Summary | |
---|---|
FieldWatch(SelectorWatch parentWatch,
Selection selection,
Value[] currentRow,
int column)
Create a new FieldWatch |
Method Summary | |
---|---|
Receiver |
activate(int locationId)
Signal that an element has been found that matches the selection that this Watch is looking for. |
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 |
deactivate(int locationId)
Signal that the endElement event has occurred for the element whose startElement event caused the Watch to be activated. |
int |
getOriginDepth()
Get the depth within the XML hierarchy of the element whose element declaration contains the unique/key/keyref constraint that this Watch implements |
Selection |
getSelection()
Get the selection (that is, the restricted XPath expression) that definesthis the nodes that this Watch is looking for |
void |
setNamespaceResolver(NamespaceResolver resolver)
Set a NamespaceResolver for use by the Watch |
void |
setOriginDepth(int depth)
Set the depth within the XML hierarchy of the element whose element declaration contains the unique/key/keyref constraint that this Watch implements |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the NamePool in use |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldWatch(SelectorWatch parentWatch, Selection selection, Value[] 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
evaluatedMethod Detail |
---|
public Selection getSelection()
getSelection
in interface Watch
public void setPipelineConfiguration(PipelineConfiguration pipe)
setPipelineConfiguration
in interface Watch
pipe
- the NamePool in usepublic void setNamespaceResolver(NamespaceResolver resolver)
setNamespaceResolver
in interface Watch
resolver
- the namespace resolver to be usedpublic int getOriginDepth()
getOriginDepth
in interface Watch
public void setOriginDepth(int depth)
setOriginDepth
in interface Watch
depth
- The depth at which the watch is scopedpublic Receiver activate(int locationId) throws ValidationException
activate
in interface Watch
locationId
- the location of the element
ValidationException
- May be raised if the constraint implemented by this
Watch is violated @param locationIdpublic void deactivate(int locationId) throws ValidationException
deactivate
in interface Watch
locationId
- the location of the element
ValidationException
- May be raised if the constraint implemented by this
Watch is violated @param locationIdpublic void close()
close
in interface Watch
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |