org.apache.wookie.w3c.impl
Class LicenseEntity

java.lang.Object
  extended by org.apache.wookie.w3c.impl.AbstractLocalizedEntity
      extended by org.apache.wookie.w3c.impl.LicenseEntity
All Implemented Interfaces:
IDirectional, ILicense, ILocalized, IElement

public class LicenseEntity
extends AbstractLocalizedEntity
implements ILicense, IElement

the element


Field Summary
 
Fields inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
dir, lang, LEFT_TO_RIGHT, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT, RIGHT_TO_LEFT_OVERRIDE
 
Constructor Summary
LicenseEntity()
           
LicenseEntity(java.lang.String licenseText, java.lang.String href, java.lang.String language, java.lang.String dir)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 java.lang.String getHref()
          Get widget license href URL.
 java.lang.String getLicenseText()
          Get widget license text.
 void setHref(java.lang.String href)
          Set widget license href URL.
 void setLicenseText(java.lang.String licenseText)
          Set widget license text.
 org.jdom.Element toXml()
          Marshall the entity into an XML Element
 
Methods inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity
getDir, getLang, getLocalizedTextContent, getTextDirection, isValid, setDir, setLang, setLocalisationAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wookie.w3c.ILocalized
getLang, setLang
 
Methods inherited from interface org.apache.wookie.w3c.IDirectional
getDir, isValid, setDir
 

Constructor Detail

LicenseEntity

public LicenseEntity()

LicenseEntity

public LicenseEntity(java.lang.String licenseText,
                     java.lang.String href,
                     java.lang.String language,
                     java.lang.String dir)
Method Detail

getLicenseText

public java.lang.String getLicenseText()
Description copied from interface: ILicense
Get widget license text.

Specified by:
getLicenseText in interface ILicense
Returns:
license text

setLicenseText

public void setLicenseText(java.lang.String licenseText)
Description copied from interface: ILicense
Set widget license text.

Specified by:
setLicenseText in interface ILicense
Parameters:
licenseText - license text

getHref

public java.lang.String getHref()
Description copied from interface: ILicense
Get widget license href URL.

Specified by:
getHref in interface ILicense
Returns:
href URL

setHref

public void setHref(java.lang.String href)
Description copied from interface: ILicense
Set widget license href URL.

Specified by:
setHref in interface ILicense
Parameters:
href - href URL

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.