com.saxonica.validate
Class AllElementValidator
java.lang.Object
  
net.sf.saxon.event.SequenceReceiver
      
net.sf.saxon.event.ProxyReceiver
          
com.saxonica.validate.ContentValidator
              
com.saxonica.validate.AttributeValidator
                  
com.saxonica.validate.AllElementValidator
- All Implemented Interfaces: 
 - Result, Receiver
 
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.
 
 
 
 
| 
Method Summary | 
 void | 
characters(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. | 
 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.ContentValidator | 
endDocument, getContainingElement, getContainingElementLocationId, getElementDeclaration, getNamespaceResolver, getNillability, isInvalid, isNil, isOutput, makeValidator, makeValidator, setContainingElement, setElementDeclaration, setErrorCode, setIsOutput, setNamespaceResolver, setNillability, setXSIType | 
 
| Methods inherited from class net.sf.saxon.event.ProxyReceiver | 
append, close, comment, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument | 
 
 
 
AllElementValidator
public AllElementValidator(UserComplexType type)
                    throws ValidationException
- Throws:
 ValidationException
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
 
- Parameters:
 nameCode - 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
- Throws:
 XPathException
 
 
characters
public void characters(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 contentproperties - Additional propertieslocationId - 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.
- 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
 
 
Copyright (C) Michael H. Kay. All rights reserved.