| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Watch
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(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 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 | 
|---|
Selection getSelection()
void setPipelineConfiguration(PipelineConfiguration config)
config - the Configuration in usevoid setNamespaceResolver(NamespaceResolver resolver)
void setOriginDepth(int depth)
depth - The depth at which the watch is scopedint getOriginDepth()
Receiver activate(int locationId)
                  throws ValidationException
locationId - 
ValidationException - May be raised if the constraint implemented by this
 Watch is violated
void deactivate(int locationId)
                throws XPathException
locationId - 
ValidationException - May be raised if the constraint implemented by this
 Watch is violated
XPathException
void close()
           throws XPathException
XPathException
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||