|
|||||||||||
| 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.IdValidator
This class validates that ID elements and attributes have unique values and that IDREF and IDREFS elements and attributes refer to an ID in the same document. The class assumes that these elements and attributes have already been locally validated (so, for example, a element of type ID will not have child elements).
| 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 | |
IdValidator()
|
|
| Method Summary | |
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 |
int |
classifyType(int fingerprint)
Classify a type as one of ID, IDREF, IDREFS, or other (returns UNTYPED). |
void |
endDocument()
End of document |
void |
endElement()
End of element |
void |
startElement(int nameCode,
int typeCode,
int properties)
Notify the start of an element |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
comment, 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 IdValidator()
| 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.TransformerException
public void characters(java.lang.CharSequence chars,
int properties)
throws javax.xml.transform.TransformerException
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.TransformerException
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 attributepublic int classifyType(int fingerprint)
public void endDocument()
throws javax.xml.transform.TransformerException
endDocument in interface ReceiverendDocument in class ProxyReceiverjavax.xml.transform.TransformerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||