com.sun.xml.bind.v2.runtime.output

Class NamespaceContextImpl.Element

public final class NamespaceContextImpl.Element extends Object

This model of namespace declarations maintain the following invariants.
Field Summary
NamespaceContextImplcontext
Method Summary
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 parent Element.
StringgetPrefix(int idx)
Gets the prefix declared in this context.
booleanisRootElement()
Returns true if this Element represents 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

count

public final int count()
Gets the number of bindings declared on this element.

endElement

public void endElement(XmlOutput out)

getBase

public int getBase()

getInnerPeer

public Object getInnerPeer()

getNsUri

public final String getNsUri(int idx)
Gets the namespace URI declared in this context.

Parameters: idx between 0 and count

getOuterPeer

public Object getOuterPeer()

getParent

public NamespaceContextImpl.Element getParent()
Gets the parent Element.

getPrefix

public final String getPrefix(int idx)
Gets the prefix declared in this context.

Parameters: idx between 0 and count

isRootElement

public boolean isRootElement()
Returns true if this Element represents the root element that we are marshalling.

pop

public NamespaceContextImpl.Element pop()

push

public NamespaceContextImpl.Element push()

setTagName

public void setTagName(int prefix, String localName, Object outerPeer)

setTagName

public void setTagName(Name tagName, Object outerPeer)

startElement

public void startElement(XmlOutput out, Object innerPeer)