Class NamespaceContextImpl.Element
- java.lang.Object
-
- com.sun.xml.bind.v2.runtime.output.NamespaceContextImpl.Element
-
- Enclosing class:
- NamespaceContextImpl
public final class NamespaceContextImpl.Element extends java.lang.ObjectThis model of namespace declarations maintain the following invariants.- If a non-empty prefix is declared, it will never be reassigned to different namespace URIs.
-
-
Field Summary
Fields Modifier and Type Field Description NamespaceContextImplcontext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Gets the number of bindings declared on this element.voidendElement(XmlOutput out)intgetBase()java.lang.ObjectgetInnerPeer()java.lang.StringgetNsUri(int idx)Gets the namespace URI declared in this context.java.lang.ObjectgetOuterPeer()NamespaceContextImpl.ElementgetParent()Gets the parentNamespaceContextImpl.Element.java.lang.StringgetPrefix(int idx)Gets the prefix declared in this context.booleanisRootElement()Returns true if thisNamespaceContextImpl.Elementrepresents the root element that we are marshalling.NamespaceContextImpl.Elementpop()NamespaceContextImpl.Elementpush()voidsetTagName(int prefix, java.lang.String localName, java.lang.Object outerPeer)voidsetTagName(Name tagName, java.lang.Object outerPeer)voidstartElement(XmlOutput out, java.lang.Object innerPeer)
-
-
-
Field Detail
-
context
public final NamespaceContextImpl context
-
-
Method Detail
-
isRootElement
public boolean isRootElement()
Returns true if thisNamespaceContextImpl.Elementrepresents the root element that we are marshalling.
-
push
public NamespaceContextImpl.Element push()
-
pop
public NamespaceContextImpl.Element pop()
-
setTagName
public void setTagName(int prefix, java.lang.String localName, java.lang.Object outerPeer)
-
setTagName
public void setTagName(Name tagName, java.lang.Object outerPeer)
-
startElement
public void startElement(XmlOutput out, java.lang.Object innerPeer) throws java.io.IOException, javax.xml.stream.XMLStreamException
- Throws:
java.io.IOExceptionjavax.xml.stream.XMLStreamException
-
endElement
public void endElement(XmlOutput out) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException
- Throws:
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.stream.XMLStreamException
-
count
public final int count()
Gets the number of bindings declared on this element.
-
getPrefix
public final java.lang.String getPrefix(int idx)
Gets the prefix declared in this context.- Parameters:
idx- between 0 andcount()
-
getNsUri
public final java.lang.String getNsUri(int idx)
Gets the namespace URI declared in this context.- Parameters:
idx- between 0 andcount()
-
getBase
public int getBase()
-
getOuterPeer
public java.lang.Object getOuterPeer()
-
getInnerPeer
public java.lang.Object getInnerPeer()
-
getParent
public NamespaceContextImpl.Element getParent()
Gets the parentNamespaceContextImpl.Element.
-
-