com.macromedia.rssu
Class RssType

java.lang.Object
  extended bycom.macromedia.rssu.RssType
Direct Known Subclasses:
Category, Channel, Cloud, Enclosure, Guid, Image, Item, Source, TextInput

public abstract class RssType
extends java.lang.Object

This class is the base class for all types used in the Rss data model. A type includes things like Channels, Items, Images, etc.

A Type's key responsibility is to hold data. A parser or writer can manipulate them.


Constructor Summary
RssType(java.lang.String typeName)
          make a new type
 
Method Summary
 java.lang.Object getProperty(java.lang.String name)
          Access the internal state of this object.
 void setProperty(java.lang.String name, java.lang.Object value)
          Used by the objects of this package to get and set the internal values of this object.
 void setProperty(java.lang.String name, java.lang.String value)
          This verison of setProperty(...) is the same as the the one that takes in an Object parameter.
 java.lang.String toString()
          Return a debugging string for this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RssType

public RssType(java.lang.String typeName)
make a new type

Parameters:
typeName - is the name of the type to use
Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Used by the objects of this package to get and set the internal values of this object. This method could be called by other tools (like CF custom tags), but they should do so only if they know what they are doing.

Parameters:
name - is the name of the property
value - is the new value

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
This verison of setProperty(...) is the same as the the one that takes in an Object parameter. However, to allow coldfusion to find this method on this object we need one that matches it's arguments exactly. So we add this one in.

Parameters:
name - is the name of the property to set
value - is the value

getProperty

public java.lang.Object getProperty(java.lang.String name)
Access the internal state of this object. It is assumed that the object accessing this will know the expected type of this object This method could be called by other tools (like CF custom tags), but they should do so only if they know what they are doing.

Parameters:
name - is the name of the property to look up
Returns:
the property

toString

public java.lang.String toString()
Return a debugging string for this object. It should be all of the properties of it.