|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.event.ProxyReceiver
|
+--com.saxonica.validate.ConstraintChecker
This class handles the checking of Schema-defined unique, key, and keyref constraints. It keeps track of the nesting of elements, and notifies a Watcher class when an element is found that matches a particular Selector.
| Field Summary |
| Fields inherited from class net.sf.saxon.event.ProxyReceiver |
baseReceiver, config, systemId |
| Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
ConstraintChecker()
|
|
| Method Summary | |
void |
addWatch(Watch watch)
Add a new Watch |
void |
attribute(int nameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
Handle an attribute |
void |
characters(java.lang.CharSequence chars,
int properties)
Character data |
void |
endElement()
End of element |
void |
setElementDeclaration(ElementDecl decl)
setElementDeclaration is called immediately after the call on startElement. |
void |
startElement(int nameCode,
int typeCode,
int properties)
Output element start tag |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
comment, endDocument, getConfiguration, getNamePool, getSystemId, getUnderlyingReceiver, namespace, processingInstruction, setConfiguration, setDocumentLocator, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstraintChecker()
| Method Detail |
public void startElement(int nameCode,
int typeCode,
int properties)
throws javax.xml.transform.TransformerException
startElement in interface ReceiverstartElement in class ProxyReceivernameCode - integer code identifying the name of the element within the name pool.typeCode - integer code identifying the element's type within the name pool.
javax.xml.transform.TransformerExceptionpublic void setElementDeclaration(ElementDecl decl)
public void attribute(int nameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
throws javax.xml.transform.TransformerException
attribute in interface Receiverattribute in class ProxyReceivernameCode - integer identifying the name of the attributetypeCode - integer identifying the type annotation (ignored)value - the value of the attributeproperties - additional properties of the attribute
javax.xml.transform.TransformerException - On any failure to write the attribute
public void characters(java.lang.CharSequence chars,
int properties)
throws javax.xml.transform.TransformerException
ProxyReceiver
characters in interface Receivercharacters in class ProxyReceiverchars - The charactersproperties - Bit significant value. The following bits are defined:
javax.xml.transform.TransformerException
public void endElement()
throws javax.xml.transform.TransformerException
endElement in interface ReceiverendElement in class ProxyReceiverjavax.xml.transform.TransformerExceptionpublic void addWatch(Watch watch)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||