net.sf.jplist.core
Class StringElement

java.lang.Object
  extended by net.sf.jplist.core.StringElement
All Implemented Interfaces:
IElement

public class StringElement
extends java.lang.Object
implements IElement

Implements a StringElement object.

Version:
$Revision: 1.2 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Field Summary
 
Fields inherited from interface net.sf.jplist.core.IElement
ARRAY, DATA, DICTIONARY, DOCUMENT, STRING
 
Constructor Summary
StringElement()
          Instantiate a StringElement object.
 
Method Summary
 void addContent(java.lang.Object obj)
          Set the String content of the object.
 java.lang.Object getContent()
          Returns the String content of the object.
 void setContent(java.lang.Object obj)
          Identical to the addContent() method since this is a scalar JPList type.
 int typeOf()
          Returns the type of JPList Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringElement

public StringElement()
Instantiate a StringElement object.

Method Detail

getContent

public java.lang.Object getContent()
Returns the String content of the object.

Specified by:
getContent in interface IElement
Returns:
the String content.
See Also:
IElement.getContent()

addContent

public void addContent(java.lang.Object obj)
                throws JPListException
Set the String content of the object.

Specified by:
addContent in interface IElement
Parameters:
obj - the String content to set.
Throws:
JPListException - if there was a problem adding content.
See Also:
IElement.addContent(java.lang.Object)

setContent

public void setContent(java.lang.Object obj)
                throws JPListException
Identical to the addContent() method since this is a scalar JPList type.

Specified by:
setContent in interface IElement
Parameters:
obj - the content to set.
Throws:
JPListException - if there was a problem setting content.
See Also:
IElement.setContent(java.lang.Object)

typeOf

public int typeOf()
Returns the type of JPList Element.

Specified by:
typeOf in interface IElement
Returns:
the type of the IElement object.
See Also:
IElement.typeOf()