|
|||||||
| 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.ValidatingFilter
com.saxonica.validate.ContentValidator
com.saxonica.validate.AttributeValidator
com.saxonica.validate.ComplexContentValidator
public class ComplexContentValidator
This class is a filter that is used to validate the content of an element with a complex type. As each child element is encountered, it is used to compute a transition in the finite state machine compiled for the given complex type.
| Field Summary |
|---|
| Fields inherited from class com.saxonica.validate.ContentValidator |
|---|
NIL_ALLOWED, NIL_DISALLOWED, NIL_IGNORED |
| Fields inherited from interface javax.xml.transform.Result |
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
|---|---|
ComplexContentValidator(ElementDecl declaration,
UserComplexType type)
Create a ComplexContentValidator for a given type |
|
| 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. |
SchemaType |
getSchemaType()
Get the schema type against which we are validating, if any |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration |
void |
setSchemaType(UserComplexType type)
Set the schema type against which this validator is to validate the instance element |
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, setAttributeGroup, startContent |
| Methods inherited from class com.saxonica.validate.ContentValidator |
|---|
endDocument, getContainingElement, getContainingElementLocationId, getNamespaceResolver, getNillability, isNil, makeValidator, makeValidator, setNamespaceResolver, setNillability, setXSIType |
| Methods inherited from class com.saxonica.validate.ValidatingFilter |
|---|
setErrorCode |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
|---|
append, close, comment, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, open, processingInstruction, setSystemId, setUnderlyingReceiver, setUnparsedEntity, 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 ComplexContentValidator(ElementDecl declaration,
UserComplexType type)
throws ValidationException
declaration - the element declaration, if available, or null otherwise.type - the complex type
ValidationException| Method Detail |
|---|
public void setPipelineConfiguration(PipelineConfiguration pipe)
Receiver
setPipelineConfiguration in interface ReceiversetPipelineConfiguration in class ProxyReceiverpipe - the pipeline configuration
public void setSchemaType(UserComplexType type)
throws ValidationException
type - the schema type used for validation
ValidationException - if there is a problem with the schemapublic SchemaType getSchemaType()
ContentValidator
getSchemaType in class ContentValidator
public void startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
startElement in interface ReceiverstartElement in class AttributeValidatornameCode - 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 AttributeValidatorchars - 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.
XPathException - If this element does not allow character data
public void endElement()
throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException - if the element is invalid
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||