| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
com.saxonica.validate.DocumentValidator
public class DocumentValidator
DocumentValidator checks that a document is well-formed: specifically, that it contains a single element node child and no text node children.
| Field Summary | 
|---|
| Fields inherited from interface javax.xml.transform.Result | 
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING | 
| Constructor Summary | |
|---|---|
DocumentValidator()
 | 
|
| Method Summary | |
|---|---|
 void | 
characters(CharSequence chars,
           int locationId,
           int properties)
Character data  | 
 void | 
endDocument()
Notify the end of a document node  | 
 void | 
endElement()
End of element  | 
 void | 
setPipelineConfiguration(PipelineConfiguration config)
Set the pipeline configuration  | 
 void | 
startElement(int nameCode,
             int typeCode,
             int locationId,
             int properties)
Start of an element  | 
| Methods inherited from class net.sf.saxon.event.ProxyReceiver | 
|---|
append, attribute, close, comment, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument | 
| Methods inherited from class net.sf.saxon.event.SequenceReceiver | 
|---|
getPipelineConfiguration, getSystemId | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DocumentValidator()
| Method Detail | 
|---|
public void setPipelineConfiguration(PipelineConfiguration config)
Receiver
setPipelineConfiguration in interface ReceiversetPipelineConfiguration in class ProxyReceiverconfig - the pipeline configuration
public void startElement(int nameCode,
                         int typeCode,
                         int locationId,
                         int properties)
                  throws XPathException
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.locationId - an integer which can be interpreted using a LocationProvider to return
 information such as line number and system ID. If no location information is available,
 the value zero is supplied.properties - properties of the element node
XPathException
public void characters(CharSequence chars,
                       int locationId,
                       int properties)
                throws XPathException
characters in interface Receivercharacters in class ProxyReceiverchars - The characterslocationId - an integer which can be interpreted using a LocationProvider
 to return information such as line number and system ID. If no location information is available,
 the value zero is supplied.properties - Bit significant value. The following bits are defined:
        XPathException
public void endElement()
                throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException
public void endDocument()
                 throws XPathException
endDocument in interface ReceiverendDocument in class ProxyReceiverXPathException
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||