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 TypeMethodDescriptionfinal int
count()
Gets the number of bindings declared on this element.void
endElement
(XmlOutput out) int
getBase()
final String
getNsUri
(int idx) Gets the namespace URI declared in this context.Gets the parentNamespaceContextImpl.Element
.final String
getPrefix
(int idx) Gets the prefix declared in this context.boolean
Returns true if thisNamespaceContextImpl.Element
represents the root element that we are marshalling.pop()
push()
void
setTagName
(int prefix, String localName, Object outerPeer) void
setTagName
(Name tagName, Object outerPeer) void
startElement
(XmlOutput out, Object innerPeer)
-
Field Details
-
context
-
-
Method Details
-
isRootElement
public boolean isRootElement()Returns true if thisNamespaceContextImpl.Element
represents the root element that we are marshalling. -
push
-
pop
-
setTagName
-
setTagName
-
startElement
- Throws:
IOException
XMLStreamException
-
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
.
-