org.apache.wookie.w3c.impl
Class AuthorEntity

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

public class AuthorEntity
extends AbstractLocalizedEntity
implements IAuthor, 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
AuthorEntity()
           
AuthorEntity(java.lang.String authorName, java.lang.String href, java.lang.String email)
           
 
Method Summary
 void fromXML(org.jdom.Element element)
          Unmarshall the given XML Element to this Object
 java.lang.String getAuthorName()
          Get the details of the author, e.g.
 java.lang.String getEmail()
          Get the email address of the author
 java.lang.String getHref()
          Get the URL of the author details, e.g.
 void setAuthorName(java.lang.String authorName)
          Set the author details
 void setEmail(java.lang.String email)
          Set the author's email
 void setHref(java.lang.String href)
          Set the author's Href
 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

AuthorEntity

public AuthorEntity()

AuthorEntity

public AuthorEntity(java.lang.String authorName,
                    java.lang.String href,
                    java.lang.String email)
Method Detail

getAuthorName

public java.lang.String getAuthorName()
Description copied from interface: IAuthor
Get the details of the author, e.g. name or names of people and/or organisations

Specified by:
getAuthorName in interface IAuthor
Returns:
the author details, or null if there are no author details

setAuthorName

public void setAuthorName(java.lang.String authorName)
Description copied from interface: IAuthor
Set the author details

Specified by:
setAuthorName in interface IAuthor
Parameters:
authorName - tha author details to set

getHref

public java.lang.String getHref()
Description copied from interface: IAuthor
Get the URL of the author details, e.g. the author's blog or website address

Specified by:
getHref in interface IAuthor
Returns:
the author's URL, or null if there is no author URL

setHref

public void setHref(java.lang.String href)
Description copied from interface: IAuthor
Set the author's Href

Specified by:
setHref in interface IAuthor
Parameters:
href - the author href to set

getEmail

public java.lang.String getEmail()
Description copied from interface: IAuthor
Get the email address of the author

Specified by:
getEmail in interface IAuthor
Returns:
the author email address, or null if there is no author email address

setEmail

public void setEmail(java.lang.String email)
Description copied from interface: IAuthor
Set the author's email

Specified by:
setEmail in interface IAuthor
Parameters:
email - the author email to set

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.