This object implements NamespaceResolver for attribute values.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Document | |
| private Attribute | |
| private NamespaceDecl | firstNs
Explicitly given namespace declarations on this element. |
| private Attribute | |
| private NamespaceDecl | |
| private final String | |
| private ContainerElement | owner
If this |
| private String | uri
Tag name of the element. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | accept(ContentVisitor visitor)
Implements abstract com. Accepts a visitor. |
| public void | |
| public NamespaceDecl | addNamespaceDecl(String
namespace URI to be bound. Can be empty, but must not be null. uri, String If non-null and non-empty, this prefix is bound to the URI
on this element. If empty, then the runtime will still try to
use the URI as the default namespace, but it may fail to do so
because of the constraints in the XML.
prefix, boolean If this parameter is null, the runtime will allocate an unique prefix. Used only when the prefix parameter is null. If true, this indicates
that the non-empty prefix must be assigned to this URI. If false,
then this URI might be used as the default namespace.
requirePrefix)Normally you just need to set it to false. Declares a new namespace URI on this tag. |
| private void | |
| pack-priv boolean | concludesPendingStartTag()
Implements abstract com. Returns true if this can guarantee that no more new namespace decls is necessary for the currently pending start tag. |
| public String | getPrefix(String nsUri)
Implements com. Allocates a prefix for the specified URI and returns it. |
| pack-priv boolean | isReadyToCommit()
Overrides com. A can be only written after we are sure that all the necessary namespace declarations are given. |
| pack-priv boolean | |
| public void | written()
Overrides com. Called when this content is written to the output. |
| document | back to summary |
|---|---|
| pack-priv final Document document | |
| firstAtt | back to summary |
|---|---|
| private Attribute firstAtt | |
| firstNs | back to summary |
|---|---|
| private NamespaceDecl firstNs Explicitly given namespace declarations on this element.
Additional namespace declarations might be necessary to
generate child | |
| lastAtt | back to summary |
|---|---|
| private Attribute lastAtt | |
| lastNs | back to summary |
|---|---|
| private NamespaceDecl lastNs | |
| localName | back to summary |
|---|---|
| private final String localName | |
| owner | back to summary |
|---|---|
| private ContainerElement owner If this | |
| uri | back to summary |
|---|---|
| private String uri Tag name of the element. This field is also used as a flag to indicate whether the start tag has been written. This field is initially set to non-null, and then reset to null when it's written. | |
| StartTag | back to summary |
|---|---|
| public StartTag(ContainerElement owner, String uri, String localName) | |
| StartTag | back to summary |
|---|---|
| public StartTag(Document document, String uri, String localName) | |
| accept | back to summary |
|---|---|
| pack-priv void accept(ContentVisitor visitor) Implements abstract com. Doc from com. Accepts a visitor.
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String nsUri, String localName, Object arg) | |
| addNamespaceDecl | back to summary |
|---|---|
| public NamespaceDecl addNamespaceDecl(String uri, String prefix, boolean requirePrefix) Declares a new namespace URI on this tag.
| |
| checkWritable | back to summary |
|---|---|
| private void checkWritable() Throws an error if the start tag has already been committed. | |
| concludesPendingStartTag | back to summary |
|---|---|
| pack-priv boolean concludesPendingStartTag() Implements abstract com. Doc from com. Returns true if this can guarantee that no more new namespace decls is necessary for the currently pending start tag.
| |
| getPrefix | back to summary |
|---|---|
| public String getPrefix(String nsUri) Implements com. Doc from com. Allocates a prefix for the specified URI and returns it.
| |
| isReadyToCommit | back to summary |
|---|---|
| pack-priv boolean isReadyToCommit() Overrides com. A can be only written after we are sure that all the necessary namespace declarations are given.
| |
| isWritten | back to summary |
|---|---|
| pack-priv boolean isWritten() Returns true if this start tag has already been written. | |
| written | back to summary |
|---|---|
| public void written() Overrides com. Doc from com. Called when this content is written to the output.
| |