Package com.sun.xml.ws.encoding
Class TagInfoset
- java.lang.Object
-
- com.sun.xml.ws.encoding.TagInfoset
-
public final class TagInfoset extends Object
Complete infoset about a start tag.This is used between
StreamMessageandStreamSOAPCodecto 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
Fields Modifier and Type Field Description AttributesImplattsAttributes on this tag.StringlocalNameLocal name of the start tag.String[]nsNamespace declarations on this tag.StringnsUriNamespace URI of the start tag in stax-style.StringprefixPrefix of the start tag in stax-style.
-
Constructor Summary
Constructors Constructor Description TagInfoset(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>allPrefixes(String namespaceURI)StringgetNamespaceURI(String prefix)StringgetPrefix(String namespaceURI)voidwriteEnd(ContentHandler contentHandler)Writes the end element event.voidwriteStart(XMLStreamWriter w)Writes the start element event.voidwriteStart(ContentHandler contentHandler)Writes the start element event.
-
-
-
Field Detail
-
ns
@NotNull public final String[] 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
@NotNull public final AttributesImpl atts
Attributes on this tag. Read-only.
-
-
Constructor Detail
-
TagInfoset
public TagInfoset(String nsUri, String localName, String prefix, AttributesImpl atts, String... ns)
-
TagInfoset
public TagInfoset(XMLStreamReader reader)
Fills aTagInfosetobject by the current element that the reader points to.
-
-
Method Detail
-
writeStart
public void writeStart(ContentHandler contentHandler) throws SAXException
Writes the start element event.- Throws:
SAXException
-
writeEnd
public void writeEnd(ContentHandler contentHandler) throws SAXException
Writes the end element event.- Throws:
SAXException
-
writeStart
public void writeStart(XMLStreamWriter w) throws XMLStreamException
Writes the start element event.- Throws:
XMLStreamException
-
-