|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.helper.ModelBean
This bean is used for storing a model. An instance of this bean is stored in the session scope to provide the last model. Each time a model assigned to this bean it is associated with a time-stamp. Objects that uses this bean can detect if the model has been replaced by comparing the current time-stamp with the time-stamp . This is usefull when the bean is used for caching models between requests.
Field Summary | |
static String |
NAME
|
Constructor Summary | |
ModelBean()
Default Constructor |
|
ModelBean(Model m)
|
|
ModelBean(Model m,
List roots)
|
|
ModelBean(Model m,
String uri)
Specialized Constructor |
Method Summary | |
Model |
getModel()
Gets the model attribute of the ModelBean object |
Resource |
getRoot()
Get the Root of current model. |
List |
getRoots()
Get the Roots of current model. |
List |
getSubItems()
List the sub-items (children) of current Root. |
TimeStamp |
getTimeStamp()
Gets the timeStamp attribute of the ModelBean object |
boolean |
isEmpty()
Check if data exists. |
void |
setModel(Model model)
Sets the model attribute of the ModelBean object |
void |
setRoot(Resource res)
Set the Root of current model. |
void |
setRoots(List roots)
Set the Roots of current model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAME
Constructor Detail |
public ModelBean()
public ModelBean(Model m, String uri) throws RDFException
uri
- URI of Rootm
- Model
RDFException
public ModelBean(Model m) throws RDFException
public ModelBean(Model m, List roots)
Method Detail |
public boolean isEmpty()
true
if data is missing.public Model getModel()
public void setModel(Model model)
model
- The new model valuepublic TimeStamp getTimeStamp()
public Resource getRoot()
public void setRoot(Resource res)
res
- Rootpublic List getRoots()
public void setRoots(List roots)
roots
- Collection of Resourcespublic List getSubItems()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |