|
|||||||||||
| 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 for the purpose of evaluating uniqueness and key constraints.
| Method Summary | |
void |
activate(int typeCode,
int activationDepth)
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 definesthis the nodes that this Watch is looking for |
void |
setConfiguration(Configuration config)
Set the Configuration in use |
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 |
| Method Detail |
public Selection getSelection()
public void setConfiguration(Configuration config)
config - the Configuration in usepublic void setOriginDepth(int depth)
depth - The depth at which the watch is scopedpublic int getOriginDepth()
public void activate(int typeCode,
int activationDepth)
throws ValidationException
typeCode - The type annotation of the element that matches the selectionactivationDepth - The depth in the XML tree at which the activation took place
ValidationException - May be raised if the constraint implemented by this
Watch is violated
public void deactivate()
throws ValidationException
ValidationException - May be raised if the constraint implemented by this
Watch is violated
public void close()
throws ValidationException
ValidationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||