com.saxonica.validate
Class AllElementValidator

java.lang.Object
  extended bynet.sf.saxon.event.SequenceReceiver
      extended bynet.sf.saxon.event.ProxyReceiver
          extended bycom.saxonica.validate.ContentValidator
              extended bycom.saxonica.validate.AttributeValidator
                  extended bycom.saxonica.validate.AllElementValidator
All Implemented Interfaces:
Receiver, javax.xml.transform.Result

public class AllElementValidator
extends AttributeValidator

This class is validator used to check the content of an element whose complex type uses the "xs:all" construction in XML Schema.


Field Summary
 
Fields inherited from class com.saxonica.validate.AttributeValidator
nil
 
Fields inherited from class com.saxonica.validate.ContentValidator
errorCode, invalid, pendingMessages, xsiType
 
Fields inherited from class net.sf.saxon.event.ProxyReceiver
nextReceiver
 
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
AllElementValidator(UserComplexType type)
           
 
Method Summary
 void characters(java.lang.CharSequence chars, int locationId, int properties)
          Handle character data appearing as a child of the element being validated
 void endElement()
          Validation at the end of the element being validated.
protected  ContentValidator getChildValidator()
          Get a validator to handle the children of the current element.
 void setPipelineConfiguration(PipelineConfiguration pipe)
          Set the pipeline configuration
 void startElement(int nameCode, int typeCode, int locationId, int properties)
          Handle the start tag for a child element of the element being validated
 
Methods inherited from class com.saxonica.validate.AttributeValidator
attribute, isNil, setAttributeGroup, startContent
 
Methods inherited from class com.saxonica.validate.ContentValidator
endDocument, getAnnotation, getContainingElement, getContainingElementLocationId, getContainingElementName, getElementDeclaration, getNamespaceResolver, isInvalid, isNillable, isOutput, makeValidator, makeValidator, makeValidator, reportValidationError, reportValidationError, setAnnotation, setContainingElement, setElementDeclaration, setErrorCode, setIsOutput, setNamespaceResolver, setNillable, setXSIType
 
Methods inherited from class net.sf.saxon.event.ProxyReceiver
close, comment, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument
 
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, getPipelineConfiguration, getSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllElementValidator

public AllElementValidator(UserComplexType type)
                    throws ValidationException
Method Detail

setPipelineConfiguration

public void setPipelineConfiguration(PipelineConfiguration pipe)
Description copied from interface: Receiver
Set the pipeline configuration

Specified by:
setPipelineConfiguration in interface Receiver
Overrides:
setPipelineConfiguration in class ProxyReceiver

startElement

public void startElement(int nameCode,
                         int typeCode,
                         int locationId,
                         int properties)
                  throws XPathException
Handle the start tag for a child element of the element being validated

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

getChildValidator

protected ContentValidator getChildValidator()
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

characters

public void characters(java.lang.CharSequence chars,
                       int locationId,
                       int properties)
                throws XPathException
Handle character data appearing as a child of the element being validated

Specified by:
characters in interface Receiver
Overrides:
characters in class AttributeValidator
Parameters:
chars - The character content
properties - Additional properties
Throws:
XPathException - If this element does not allow character data

endElement

public void endElement()
                throws XPathException
Validation at the end of the element being validated.

Specified by:
endElement in interface Receiver
Overrides:
endElement in class ProxyReceiver
Throws:
XPathException - if the element is invalid