Module com.sun.xml.bind
Class NamespaceContextImpl.Element
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.output.NamespaceContextImpl.Element
-
- Enclosing class:
- NamespaceContextImpl
public final class NamespaceContextImpl.Element extends Object
This 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()ObjectgetInnerPeer()StringgetNsUri(int idx)Gets the namespace URI declared in this context.ObjectgetOuterPeer()NamespaceContextImpl.ElementgetParent()Gets the parentNamespaceContextImpl.Element.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, String localName, Object outerPeer)voidsetTagName(Name tagName, Object outerPeer)voidstartElement(XmlOutput out, 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()
-
startElement
public void startElement(XmlOutput out, Object innerPeer) throws IOException, XMLStreamException
- Throws:
IOExceptionXMLStreamException
-
endElement
public void endElement(XmlOutput out) throws IOException, SAXException, XMLStreamException
-
count
public final int count()
Gets the number of bindings declared on this element.
-
getPrefix
public final String getPrefix(int idx)
Gets the prefix declared in this context.- Parameters:
idx- between 0 andcount()
-
getNsUri
public final String getNsUri(int idx)
Gets the namespace URI declared in this context.- Parameters:
idx- between 0 andcount()
-
getBase
public int getBase()
-
getOuterPeer
public Object getOuterPeer()
-
getInnerPeer
public Object getInnerPeer()
-
getParent
public NamespaceContextImpl.Element getParent()
Gets the parentNamespaceContextImpl.Element.
-
-