com.myjavatools.xml
Class Rss.Member

java.lang.Object
  extended by com.myjavatools.xml.BasicXmlData
      extended by com.myjavatools.xml.Rss.Member
All Implemented Interfaces:
XmlData
Direct Known Subclasses:
Rss.Image, Rss.Item, Rss.TextInput
Enclosing class:
Rss

public static class Rss.Member
extends BasicXmlData

incorporates general purpose RSS member element functionality


Nested Class Summary
 
Nested classes/interfaces inherited from class com.myjavatools.xml.BasicXmlData
BasicXmlData.Expression, BasicXmlData.Function<X,Y>, BasicXmlData.Policy
 
Nested classes/interfaces inherited from interface com.myjavatools.xml.XmlData
XmlData.Condition
 
Field Summary
 
Fields inherited from class com.myjavatools.xml.BasicXmlData
XmlDataClass
 
Constructor Summary
protected Rss.Member(java.lang.String type, BasicXmlData... elements)
          creates a typical member element
protected Rss.Member(java.lang.String type, java.lang.String... pairs)
          creates a typical member element
protected Rss.Member(java.lang.String type, XmlData data)
          creates a member of specified type based on XmlData
protected Rss.Member(XmlData data)
          creates a member based on XmlData
 
Method Summary
protected  void addElement(java.lang.String name, java.lang.String value)
          adds a data element to member
 java.lang.String getDescription()
          gets member description
 java.lang.String getLink()
          gets member link
 java.lang.String getName()
          gets member name
 java.lang.String getTitle()
          gets member title
 java.lang.String getUrl()
          gets member url
 void setDescription(java.lang.String description)
          sets member description
protected  void setElement(java.lang.String name, java.lang.String value)
          sets a data element of a member
 void setLink(java.lang.String url)
          sets member link
 void setUrl(java.lang.String url)
          sets member url
 
Methods inherited from class com.myjavatools.xml.BasicXmlData
addKid, addKids, addKids, cast, cast, castKids, castToPackage, castToPackage, cleanAttributes, clone, debug, deepCopy, equal, equals, getAllKids, getAttribute, getAttribute, getAttributes, getId, getInputStream, getKid, getKid, getKid, getKid, getKidAttribute, getKidCount, getKids, getKidTypes, getKidValue, getType, getValue, getXmlContent, hashCode, indexOf, insertKid, insertKid, removeKid, removeKids, replaceKid, satisfies, satisfies, save, save, save, selectTree, selectTree, setAttribute, setAttributes, setAttributes, setAttributes, setKidAttribute, setKids, setKidValue, setType, setValue, setXmlContent, trim
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rss.Member

protected Rss.Member(XmlData data)
creates a member based on XmlData

Parameters:
data - XmlData source

Rss.Member

protected Rss.Member(java.lang.String type,
                     XmlData data)
creates a member of specified type based on XmlData

Parameters:
type - String
data - XmlData source

Rss.Member

protected Rss.Member(java.lang.String type,
                     BasicXmlData... elements)
creates a typical member element

Parameters:
type - String member type
elements - BasicXmlData[] member data

Rss.Member

protected Rss.Member(java.lang.String type,
                     java.lang.String... pairs)
creates a typical member element

Parameters:
type - String member type
pairs - String... name-value pairs of member data
Method Detail

addElement

protected void addElement(java.lang.String name,
                          java.lang.String value)
adds a data element to member

Parameters:
name - String element name (a.k.a. type)
value - String element value

setElement

protected void setElement(java.lang.String name,
                          java.lang.String value)
sets a data element of a member

Parameters:
name - String element name (a.k.a. type)
value - String element value if value == null, the element is removed. if element already exists, its value is changed, otherwise a new element is added

getDescription

public java.lang.String getDescription()
gets member description

Returns:
String

setDescription

public void setDescription(java.lang.String description)
sets member description

Parameters:
description - String

getName

public java.lang.String getName()
gets member name

Specified by:
getName in interface XmlData
Overrides:
getName in class BasicXmlData
Returns:
String name

getTitle

public java.lang.String getTitle()
gets member title

Returns:
String title

getUrl

public java.lang.String getUrl()
gets member url

Returns:
String url

setUrl

public void setUrl(java.lang.String url)
sets member url

Parameters:
String - url

getLink

public java.lang.String getLink()
gets member link

Returns:
String link

setLink

public void setLink(java.lang.String url)
sets member link

Parameters:
String - link