Note
these elements are designed to be reused within context of a single document output, ie. they are owned by the stream writer, and can be recycled by it, as necessary.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private String | _defaultNsURI
Namespace context end application may have supplied, and that (if given) should be used to augment explicitly defined bindings. |
| private WName | _name
Prefixed name used for serialization. |
| private NsBinder | |
| private OutputElement | _parent
Reference to either the parent (enclosing element) of this element, when part of active output context; or link to next reusable unused element after this one (if not part of active context). |
| private String | |
| pack-priv static final byte | |
| pack-priv static final byte | |
| pack-priv static final byte |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | addToPool(OutputElement poolHead)
Method called to temporarily link this instance to a pool, to allow reusing of instances with the same reader. |
| public OutputElement. | Returns: OK, if passed-in prefix matches matched-in namespace URI in current scope; UNBOUND if it's not bound to anything, and MISBOUND if it's bound to another URI.Method that verifies that passed-in non-empty prefix indeed maps to specified non-empty namespace URI; and depending on how it goes returns a status for caller. |
| protected OutputElement | createChild(WName name)
Simplest factory method, which gets called when non-namespace element output method is called. |
| protected OutputElement | createChild(WName name, String uri)
Full factory method, used for 'normal' namespace qualified output methods. |
| protected static OutputElement | |
| public String | |
| public String | |
| public String | getExplicitPrefix(String uri, NamespaceContext rootNsContext)
Method similar to |
| public String | |
| public WName | |
| public String | Returns: String presentation of the fully-qualified name, in "prefix:localName" format (no URI). Useful for error and debugging messages.
|
| public String | |
| public String | |
| public String | |
| public String | |
| public OutputElement | |
| public String | |
| public Iterator | |
| public QName | |
| public boolean | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| private void | relink(OutputElement parent, WName name, String uri)
Method called to reuse a pooled instance, but with different name |
| protected OutputElement | |
| protected OutputElement | |
| public void |
| _defaultNsURI | back to summary |
|---|---|
| private String _defaultNsURI Namespace context end application may have supplied, and that (if given) should be used to augment explicitly defined bindings. | |
| _name | back to summary |
|---|---|
| private WName _name Prefixed name used for serialization. | |
| _nsBinder | back to summary |
|---|---|
| private NsBinder _nsBinder | |
| _parent | back to summary |
|---|---|
| private OutputElement _parent Reference to either the parent (enclosing element) of this element, when part of active output context; or link to next reusable unused element after this one (if not part of active context). | |
| _uri | back to summary |
|---|---|
| private String _uri Namespace of the element, whatever prefix part of | |
| BYTE_GT | back to summary |
|---|---|
| pack-priv static final byte BYTE_GT | |
| BYTE_LT | back to summary |
|---|---|
| pack-priv static final byte BYTE_LT | |
| BYTE_SLASH | back to summary |
|---|---|
| pack-priv static final byte BYTE_SLASH | |
| OutputElement | back to summary |
|---|---|
| private OutputElement() | |
| OutputElement | back to summary |
|---|---|
| private OutputElement(OutputElement parent, WName name, String uri, NsBinder binder) | |
| addPrefix | back to summary |
|---|---|
| public void addPrefix(String prefix, String uri) | |
| addToPool | back to summary |
|---|---|
| protected void addToPool(OutputElement poolHead) Method called to temporarily link this instance to a pool, to allow reusing of instances with the same reader. | |
| checkPrefixValidity | back to summary |
|---|---|
| public OutputElement. Method that verifies that passed-in non-empty prefix indeed maps to specified non-empty namespace URI; and depending on how it goes returns a status for caller.
| |
| createChild | back to summary |
|---|---|
| protected OutputElement createChild(WName name) Simplest factory method, which gets called when non-namespace element output method is called. It is, then, assumed to use the default namespce. | |
| createChild | back to summary |
|---|---|
| protected OutputElement createChild(WName name, String uri) Full factory method, used for 'normal' namespace qualified output methods. | |
| createRoot | back to summary |
|---|---|
| protected static OutputElement createRoot() | |
| generatePrefix | back to summary |
|---|---|
| public String generatePrefix(NamespaceContext rootNsContext, String prefixBase, int[] seqArr) | |
| getDefaultNsURI | back to summary |
|---|---|
| public String getDefaultNsURI() | |
| getExplicitPrefix | back to summary |
|---|---|
| public String getExplicitPrefix(String uri, NamespaceContext rootNsContext) Method similar to | |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() | |
| getName | back to summary |
|---|---|
| public WName getName() | |
| getNameDesc | back to summary |
|---|---|
public String getNameDesc()
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() | |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI(String prefix) | |
| getNonNullNamespaceURI | back to summary |
|---|---|
| public String getNonNullNamespaceURI() | |
| getNonNullPrefix | back to summary |
|---|---|
| public String getNonNullPrefix() | |
| getParent | back to summary |
|---|---|
| public OutputElement getParent() | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix(String uri) | |
| getPrefixes | back to summary |
|---|---|
public Iterator
| |
| getQName | back to summary |
|---|---|
| public QName getQName() | |
| hasEmptyDefaultNs | back to summary |
|---|---|
| public boolean hasEmptyDefaultNs() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasPrefix | back to summary |
|---|---|
| public boolean hasPrefix() | |
| isPrefixBoundTo | back to summary |
|---|---|
| public boolean isPrefixBoundTo(String prefix, String nsURI, NamespaceContext rootNsContext) | |
| isPrefixUnbound | back to summary |
|---|---|
| public boolean isPrefixUnbound(String prefix, NamespaceContext rootNsContext) | |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() | |
| relink | back to summary |
|---|---|
| public void relink(OutputElement parent) Method called to reuse a recycled instance, as is, with same name. | |
| relink | back to summary |
|---|---|
| private void relink(OutputElement parent, WName name, String uri) Method called to reuse a pooled instance, but with different name | |
| reuseAsChild | back to summary |
|---|---|
protected OutputElement reuseAsChild(OutputElement parent, WName name)
| |
| reuseAsChild | back to summary |
|---|---|
| protected OutputElement reuseAsChild(OutputElement parent, WName name, String nsURI) | |
| setDefaultNsURI | back to summary |
|---|---|
| public void setDefaultNsURI(String uri) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final OutputElement. | |
| public static final OutputElement. | |
| public static final OutputElement. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OutputElement. | |
| public static OutputElement. |
| MISBOUND | back to summary |
|---|---|
| public static final OutputElement. | |
| OK | back to summary |
|---|---|
| public static final OutputElement. | |
| UNBOUND | back to summary |
|---|---|
| public static final OutputElement. | |
| PrefixState | back to summary |
|---|---|
| private PrefixState() | |
| valueOf | back to summary |
|---|---|
| public static OutputElement. | |
| values | back to summary |
|---|---|
| public static OutputElement. | |