org.apache.wookie.w3c.impl
Class NameEntity
java.lang.Object
org.apache.wookie.w3c.impl.AbstractLocalizedEntity
org.apache.wookie.w3c.impl.NameEntity
- All Implemented Interfaces:
- IDirectional, ILocalized, IName, IElement
public class NameEntity
- extends AbstractLocalizedEntity
- implements IName, IElement
the element
|
Constructor Summary |
NameEntity()
|
NameEntity(java.lang.String name,
java.lang.String short1,
java.lang.String language)
|
|
Method Summary |
void |
fromXML(org.jdom.Element element)
Unmarshall the given XML Element to this Object |
java.lang.String |
getName()
Get widget name. |
java.lang.String |
getShort()
Get widget short name. |
void |
setName(java.lang.String name)
Set widget name. |
void |
setShort(java.lang.String short1)
Set widget short name. |
org.jdom.Element |
toXml()
Marshall the entity into an XML Element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameEntity
public NameEntity()
NameEntity
public NameEntity(java.lang.String name,
java.lang.String short1,
java.lang.String language)
getName
public java.lang.String getName()
- Description copied from interface:
IName
- Get widget name.
- Specified by:
getName in interface IName
- Returns:
- name
setName
public void setName(java.lang.String name)
- Description copied from interface:
IName
- Set widget name.
- Specified by:
setName in interface IName
- Parameters:
name - name
getShort
public java.lang.String getShort()
- Description copied from interface:
IName
- Get widget short name.
- Specified by:
getShort in interface IName
- Returns:
- short name
setShort
public void setShort(java.lang.String short1)
- Description copied from interface:
IName
- Set widget short name.
- Specified by:
setShort in interface IName
- Parameters:
short1 - short name
fromXML
public void fromXML(org.jdom.Element element)
- Description copied from interface:
IElement
- Unmarshall the given XML Element to this Object
- Specified by:
fromXML in interface IElement- Overrides:
fromXML in class AbstractLocalizedEntity
- Parameters:
element - The Element to unmarshall
toXml
public org.jdom.Element toXml()
- Description copied from interface:
IElement
- Marshall the entity into an XML Element
- Specified by:
toXml in interface IElement
- Returns:
- the W3C Widgets Element representing the content of the entity
2012 Apache Software Foundation.