com.ail.core.document.model
Class ItemData

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.document.model.ItemData
All Implemented Interfaces:
Identified, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
DocumentData, ItemContainer, ModelData, UrlData

public abstract class ItemData
extends Type
implements Identified

Node of the document structure object graph.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
ItemData()
           
 
Method Summary
 boolean compareById(java.lang.Object that)
          Return true if that is of the same type and has the same Id as this.
 java.lang.String getId()
           
 java.lang.Long getOrder()
          The order of this item with respect to other items owned by the same parent.
 java.lang.String getStyle()
           
 java.lang.String getTitle()
           
 java.lang.String getValue()
           
abstract  void render(RenderContext context)
           
 void setId(java.lang.String id)
           
 void setOrder(java.lang.Long order)
           
 void setStyle(java.lang.String format)
           
 void setTitle(java.lang.String title)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemData

public ItemData()
Method Detail

getStyle

public java.lang.String getStyle()

setStyle

public void setStyle(java.lang.String format)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

getOrder

public java.lang.Long getOrder()
The order of this item with respect to other items owned by the same parent. Note: lower order items appear first.

Returns:
container's order

setOrder

public void setOrder(java.lang.Long order)
Parameters:
order -
See Also:
getOrder()

getId

public java.lang.String getId()
Specified by:
getId in interface Identified

setId

public void setId(java.lang.String id)
Specified by:
setId in interface Identified

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

compareById

public boolean compareById(java.lang.Object that)
Description copied from interface: Identified
Return true if that is of the same type and has the same Id as this.

Specified by:
compareById in interface Identified
Parameters:
that - Object to compare with.
Returns:
true if this and that are the same by Id.

render

public abstract void render(RenderContext context)