Class NamespaceContextImpl.Element
- java.lang.Object
-
- com.sun.xml.bind.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 NamespaceContextImpl
context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
Gets the number of bindings declared on this element.void
endElement(XmlOutput out)
int
getBase()
Object
getInnerPeer()
String
getNsUri(int idx)
Gets the namespace URI declared in this context.Object
getOuterPeer()
NamespaceContextImpl.Element
getParent()
Gets the parentNamespaceContextImpl.Element
.String
getPrefix(int idx)
Gets the prefix declared in this context.boolean
isRootElement()
Returns true if thisNamespaceContextImpl.Element
represents the root element that we are marshalling.NamespaceContextImpl.Element
pop()
NamespaceContextImpl.Element
push()
void
setTagName(int prefix, String localName, Object outerPeer)
void
setTagName(Name tagName, Object outerPeer)
void
startElement(XmlOutput out, Object innerPeer)
-
-
-
Field Detail
-
context
public final NamespaceContextImpl context
-
-
Method Detail
-
isRootElement
public boolean isRootElement()
Returns true if thisNamespaceContextImpl.Element
represents 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:
IOException
XMLStreamException
-
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
.
-
-