Package com.sun.xml.ws.encoding
Class TagInfoset
java.lang.Object
com.sun.xml.ws.encoding.TagInfoset
Complete infoset about a start tag.
This is used between StreamMessage and StreamSOAPCodec
to capture the infoset of the s:Envelope, s:Header, and s:Body elements.
Design Note
Since StAX and SAX uses different null vs empty string convention, one has to choose which format we store things. It can go either way, but I'm assuming that we'll be using StAX more in JAX-WS, so things are kept in the StAX style in this class.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AttributesImplAttributes on this tag.final StringLocal name of the start tag.final String[]Namespace declarations on this tag.final StringNamespace URI of the start tag in stax-style.final StringPrefix of the start tag in stax-style. -
Constructor Summary
ConstructorsConstructorDescriptionTagInfoset(String nsUri, String localName, String prefix, AttributesImpl atts, String... ns) TagInfoset(XMLStreamReader reader) Fills aTagInfosetobject by the current element that the reader points to. -
Method Summary
Modifier and TypeMethodDescriptionallPrefixes(String namespaceURI) getNamespaceURI(String prefix) voidwriteEnd(ContentHandler contentHandler) Writes the end element event.voidWrites the start element event.voidwriteStart(ContentHandler contentHandler) Writes the start element event.
-
Field Details
-
ns
Namespace declarations on this tag. Read-only. This is an array of the even length of the form { prefix0, uri0, prefix1, uri1, ... }. URIs/prefixes can be null (StAX-style) -
atts
Attributes on this tag. Read-only. -
prefix
Prefix of the start tag in stax-style. -
nsUri
Namespace URI of the start tag in stax-style. -
localName
Local name of the start tag.
-
-
Constructor Details
-
TagInfoset
-
TagInfoset
Fills aTagInfosetobject by the current element that the reader points to.
-
-
Method Details
-
writeStart
Writes the start element event.- Throws:
SAXException
-
writeEnd
Writes the end element event.- Throws:
SAXException
-
writeStart
Writes the start element event.- Throws:
XMLStreamException
-
getNamespaceURI
-
getPrefix
-
allPrefixes
-