jasi.simple.defi
Class SimpleElement

java.lang.Object
  extended by jasi.simple.defi.SimpleElementHandler
      extended by jasi.simple.defi.SimpleElement
All Implemented Interfaces:
Element, SimObject, SimpleObject, java.io.Serializable, java.lang.Comparable<Element>

public class SimpleElement
extends SimpleElementHandler

An example for a simple element.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jasi.simple.defi.SimpleElementHandler
listener
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Constructor Summary
SimpleElement()
          Constructor for SimpleElement.
SimpleElement(Id id)
          Constructor for SimpleElement for a given ID.
 
Method Summary
 SimpleObject emptyContent()
          Empty the element's content.
 SimpleObject fillContent(java.lang.String content)
          Fill element with new content.
 java.lang.String readContent()
          Retrieve the content of this element.
 
Methods inherited from class jasi.simple.defi.SimpleElementHandler
compareTo, delete, getHistory, getHistory, getId, getKey, getValue, isDeleted, registered, setHistory, setHistory, setId, setKey, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleElement

public SimpleElement()
Constructor for SimpleElement.


SimpleElement

public SimpleElement(Id id)
Constructor for SimpleElement for a given ID.

Parameters:
id - The ID.
Method Detail

readContent

public java.lang.String readContent()
Retrieve the content of this element.

Returns:
The content.

emptyContent

public SimpleObject emptyContent()
Empty the element's content.

Returns:
This simple element with empty content.

fillContent

public SimpleObject fillContent(java.lang.String content)
Fill element with new content.

Parameters:
content - The new content.
Returns:
This simple element with new content.