Class NamespaceContextImpl.Element
java.lang.Object
org.glassfish.jaxb.runtime.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 TypeMethodDescriptionintcount()Gets the number of bindings declared on this element.voidendElement(XmlOutput out) intgetBase()getNsUri(int idx) Gets the namespace URI declared in this context.Gets the parent .getPrefix(int idx) Gets the prefix declared in this context.booleanReturns true if this represents 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 this represents the root element that we are marshalling. -
push
-
pop
-
setTagName
-
setTagName
-
startElement
- Throws:
IOExceptionXMLStreamException
-
endElement
-
count
public 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 parent .
-