com.saxonica.validate
Class LaxValidator

java.lang.Object
  extended bynet.sf.saxon.event.SequenceReceiver
      extended bynet.sf.saxon.event.ProxyReceiver
          extended bycom.saxonica.validate.ContentValidator
              extended bycom.saxonica.validate.LaxValidator
All Implemented Interfaces:
Receiver, javax.xml.transform.Result
Direct Known Subclasses:
AnyTypeValidator

public class LaxValidator
extends ContentValidator

This class performs lax validation on an element.


Field Summary
 
Fields inherited from class com.saxonica.validate.ContentValidator
invalid, pendingMessages, xsiType
 
Fields inherited from class net.sf.saxon.event.ProxyReceiver
nextReceiver, systemId
 
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
LaxValidator()
           
 
Method Summary
 void attribute(int nameCode, int typeCode, java.lang.CharSequence value, int locationId, int properties)
          Handle an attribute
 ContentValidator getChildValidator()
          Get a validator to handle the children of the current element.
 void startElement(int nameCode, int typeCode, int locationId, int properties)
          Output element start tag for a child element
 
Methods inherited from class com.saxonica.validate.ContentValidator
endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, isInvalid, isNillable, isOutput, makeValidator, makeValidator, makeValidator, reportValidationError, setAnnotation, setContainingElement, setElementDeclaration, setIsOutput, setNamespaceResolver, setNillable, setXSIType
 
Methods inherited from class net.sf.saxon.event.ProxyReceiver
characters, close, comment, endElement, getConfiguration, getDocumentLocator, getNamePool, getSystemId, getUnderlyingReceiver, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
 
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, getPipelineConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaxValidator

public LaxValidator()
Method Detail

startElement

public void startElement(int nameCode,
                         int typeCode,
                         int locationId,
                         int properties)
                  throws XPathException
Output element start tag for a child element

Specified by:
startElement in interface Receiver
Overrides:
startElement in class ContentValidator
Throws:
XPathException

getChildValidator

public ContentValidator getChildValidator()
Description copied from class: ContentValidator
Get a validator to handle the children of the current element. This is called immediately on return from the startElement call that starts this element.

Specified by:
getChildValidator in class ContentValidator

attribute

public void attribute(int nameCode,
                      int typeCode,
                      java.lang.CharSequence value,
                      int locationId,
                      int properties)
               throws XPathException
Handle an attribute

Specified by:
attribute in interface Receiver
Overrides:
attribute in class ProxyReceiver
Parameters:
nameCode - integer identifying the name of the attribute
typeCode - integer identifying the type annotation of the attribute
value - the value of the attribute
properties - bit-significant flags indicating special action to be taken
Throws:
XPathException - On any failure to write the attribute