| org.zkoss.idom.Namespaceable
All known Subclasses: org.zkoss.idom.Element, org.zkoss.idom.Attribute,
Namespaceable | public interface Namespaceable (Code) | | Represents a class that supports namespace.
It is usually implemented by a class that also implements Item or Group.
Currently, only Element and Attribute implement it.
author: tomyeh See Also: Item See Also: Group See Also: Attributable See Also: Binable |
Method Summary | |
public String | getLocalName() Gets the local name of this item.
The local name is the name without prefix.
To get the tag name (the name with prefix),
Namespaceable.getTagName could be used. | public Namespace | getNamespace() Gets the namespace. | public String | getTagName() Gets the tag name of this item.
The tag name is also called the full qualitifed name -- the name
with the namespace prefix, e.g., prefix:name.
To get the local name (the name without prefix),
Namespaceable.getLocalName could be used. | public void | setLocalName(String lname) Sets the local name of this item. | public void | setNamespace(Namespace ns) Sets the namespace. | public void | setTagName(String tname) Sets the tag name of this item. |
getLocalName | public String getLocalName()(Code) | | Gets the local name of this item.
The local name is the name without prefix.
To get the tag name (the name with prefix),
Namespaceable.getTagName could be used.
|
getNamespace | public Namespace getNamespace()(Code) | | Gets the namespace.
the namespace; never null |
getTagName | public String getTagName()(Code) | | Gets the tag name of this item.
The tag name is also called the full qualitifed name -- the name
with the namespace prefix, e.g., prefix:name.
To get the local name (the name without prefix),
Namespaceable.getLocalName could be used.
|
setLocalName | public void setLocalName(String lname)(Code) | | Sets the local name of this item.
|
setNamespace | public void setNamespace(Namespace ns)(Code) | | Sets the namespace. A null namespace will be converted to
Namespace.NO_NAMESPACE.
|
setTagName | public void setTagName(String tname)(Code) | | Sets the tag name of this item.
|
|
|