|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper
org.apache.axiom.util.stax.debug.XMLStreamReaderValidator
org.apache.axiom.om.util.OMXMLStreamReaderValidator
public class OMXMLStreamReaderValidator
There are several places in the code where events are passed from a source to a consumer using XMLStreamReader events. OMXMLStreamReader (impl)--> consumer of XMLStreamReader events This simple class can be interjected as a filter and used to do some simple validation. Validating the events coming from source (impl) can help find and correct errors when they occur. Otherwise the errors may be caught much further downstream and hard to fix. OMXMLStreamReader (impl)--> OMXMLStreamReaderValiator-> consumer of XMLStreamReader events In the initial version, the XMStreamValidator ensures that the start element events match the end element events.
OMContainer.getXMLStreamReader(boolean)| Field Summary |
|---|
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
OMXMLStreamReaderValidator(OMXMLStreamReader delegate,
boolean throwExceptions)
|
|
| Method Summary | |
|---|---|
javax.activation.DataHandler |
getDataHandler(java.lang.String blobcid)
|
boolean |
isInlineMTOM()
By default, an OMText item that has an MTOM datahandler will be rendered as a inlined text event. |
void |
setInlineMTOM(boolean value)
|
| Methods inherited from class org.apache.axiom.util.stax.debug.XMLStreamReaderValidator |
|---|
getElementText, logParserState, next, nextTag |
| Methods inherited from class org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper |
|---|
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, require, standaloneSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.stream.XMLStreamReader |
|---|
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet |
| Constructor Detail |
|---|
public OMXMLStreamReaderValidator(OMXMLStreamReader delegate,
boolean throwExceptions)
delegate - XMLStreamReader to validatethrowExceptions - (true if exceptions should be thrown when errors are encountered)| Method Detail |
|---|
public javax.activation.DataHandler getDataHandler(java.lang.String blobcid)
getDataHandler in interface OMAttachmentAccessorblobcid - (without the surrounding angle brackets and "cid:" prefix)
public boolean isInlineMTOM()
OMXMLStreamReader
isInlineMTOM in interface OMXMLStreamReaderpublic void setInlineMTOM(boolean value)
setInlineMTOM in interface OMXMLStreamReadervalue - set to true if inlining of text is desired (default)
throw OMException if not the value is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||