Class NamespaceContextImpl.Element
java.lang.Object
com.sun.xml.bind.v2.runtime.output.NamespaceContextImpl.Element
- Enclosing class:
- NamespaceContextImpl
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal intcount()Gets the number of bindings declared on this element.voidendElement(XmlOutput out) intgetBase()final StringgetNsUri(int idx) Gets the namespace URI declared in this context.Gets the parentNamespaceContextImpl.Element.final StringgetPrefix(int idx) Gets the prefix declared in this context.booleanReturns true if thisNamespaceContextImpl.Elementrepresents the root element that we are marshalling.pop()push()voidsetTagName(int prefix, String localName, Object outerPeer) voidsetTagName(Name tagName, Object outerPeer) voidstartElement(XmlOutput out, Object innerPeer)
-
Field Details
-
context
-
-
Method Details
-
isRootElement
public boolean isRootElement()Returns true if thisNamespaceContextImpl.Elementrepresents the root element that we are marshalling. -
push
-
pop
-
setTagName
-
setTagName
-
startElement
- Throws:
IOExceptionXMLStreamException
-
endElement
-
count
public final int count()Gets the number of bindings declared on this element. -
getPrefix
Gets the prefix declared in this context.- Parameters:
idx- between 0 andcount()
-
getNsUri
Gets the namespace URI declared in this context.- Parameters:
idx- between 0 andcount()
-
getBase
public int getBase() -
getOuterPeer
-
getInnerPeer
-
getParent
Gets the parentNamespaceContextImpl.Element.
-