|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Watch represents a class that is interested in looking at nodes passing down a push pipeline, typically for the purpose of evaluating uniqueness and key constraints. The nodes that the Watch is interested in are identified by a Selection object.
Method Summary | |
Receiver |
activate()
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()
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 defines 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 config)
Set the Configuration in use |
Method Detail |
public Selection getSelection()
public void setPipelineConfiguration(PipelineConfiguration config)
config
- the Configuration in usepublic void setNamespaceResolver(NamespaceResolver resolver)
public void setOriginDepth(int depth)
depth
- The depth at which the watch is scopedpublic int getOriginDepth()
public Receiver activate() throws ValidationException
ValidationException
- May be raised if the constraint implemented by this
Watch is violatedpublic void deactivate() throws XPathException
ValidationException
- May be raised if the constraint implemented by this
Watch is violated
XPathException
public void close() throws XPathException
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |