|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.event.ProxyReceiver
|
+--com.saxonica.validate.ValidationStack
This class manages the receivers that do element content validation. It maintains a stack of Validators, each of which does local element validation of the contents of a single element, adding a new validator to the stack to handle each layer of nesting.
| Field Summary |
| Fields inherited from class net.sf.saxon.event.ProxyReceiver |
baseReceiver, config, systemId |
| Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
ValidationStack(Receiver out,
int initialValidationMode)
|
|
| Method Summary | |
void |
attribute(int nameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
Handle an attribute |
void |
characters(java.lang.CharSequence chars,
int properties)
Notify character data. |
void |
endElement()
End of element |
void |
setConstraintChecker(ConstraintChecker checker)
Set the constraint checker in use (if any). |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set the Document Locator |
void |
setInitialValidator(Validator validator)
Set the initial validator to be used for the outermost element |
void |
setNamespaceResolver(NamespaceResolver resolver)
Set the NamespaceResolver to be used for resolving QName-valued attributes |
void |
setXSIType(SchemaType type)
Set the value of xsi:type, if present. |
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces. |
void |
startElement(int nameCode,
int typeCode,
int properties)
Output element start tag |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
comment, endDocument, getConfiguration, getNamePool, getSystemId, getUnderlyingReceiver, namespace, processingInstruction, setConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.event.Receiver |
comment, endDocument, getConfiguration, namespace, processingInstruction, setConfiguration, setSystemId, setUnparsedEntity, startDocument |
| Methods inherited from interface javax.xml.transform.Result |
getSystemId |
| Constructor Detail |
public ValidationStack(Receiver out,
int initialValidationMode)
| Method Detail |
public void setDocumentLocator(org.xml.sax.Locator locator)
throws javax.xml.transform.TransformerException
setDocumentLocator in interface ReceiversetDocumentLocator in class ProxyReceiverjavax.xml.transform.TransformerExceptionpublic void setConstraintChecker(ConstraintChecker checker)
public void setXSIType(SchemaType type)
public void setNamespaceResolver(NamespaceResolver resolver)
public void startElement(int nameCode,
int typeCode,
int properties)
throws javax.xml.transform.TransformerException
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.
javax.xml.transform.TransformerExceptionpublic void setInitialValidator(Validator validator)
public void attribute(int nameCode,
int typeCode,
java.lang.CharSequence value,
int properties)
throws javax.xml.transform.TransformerException
attribute in interface Receiverattribute in class ProxyReceivernameCode - integer identifying the name of the attributetypeCode - integer identifying the type annotation (ignored)value - the value of the attributeproperties - additional properties of the attribute
javax.xml.transform.TransformerException - On any failure to write the attribute
public final void startContent()
throws javax.xml.transform.TransformerException
startContent in interface ReceiverstartContent in class ProxyReceiverjavax.xml.transform.TransformerException
public void characters(java.lang.CharSequence chars,
int properties)
throws javax.xml.transform.TransformerException
Receiver
characters in interface Receivercharacters in class ProxyReceiverchars - The charactersproperties - Bit significant value. The following bits are defined:
javax.xml.transform.TransformerException
public void endElement()
throws javax.xml.transform.TransformerException
endElement in interface ReceiverendElement in class ProxyReceiverjavax.xml.transform.TransformerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||