|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.plankton.data.AbstractPData
public abstract class AbstractPData
Abstract implementation of the basic PData methods.
Field Summary | |
---|---|
protected boolean |
inheritParents
|
protected PData |
parent
|
protected DefaultStateMap |
state
|
Constructor Summary | |
---|---|
AbstractPData()
|
Method Summary | |
---|---|
void |
clearState()
clear all state information |
PData |
getParent()
get the objects parent (null if root) |
PData |
getRootParent()
get the root parent by chaining back up the heirarchy until we find the highest PData object in the heirarchy. |
Object |
getState(Object key)
get a property in this StateMap |
Set |
getStateKeys()
get a keyset for this StateMap (whether or not the set is backed by the data store depends on the implementation) |
Map |
getStateStore()
get a copy of the underlying Map that holds the state values |
boolean |
isInheritParents()
Return true if we are inheriting parents. |
void |
putState(Object key,
Object val)
set a property in this StateMap |
Object |
removeState(Object key)
remove a property in this StateMap |
void |
setInheritParents(boolean val)
Do we want to inherit parents. |
void |
setParent(PData p)
set the object's parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PData parent
protected boolean inheritParents
protected DefaultStateMap state
Constructor Detail |
---|
public AbstractPData()
Method Detail |
---|
public void setParent(PData p)
setParent
in interface PData
p
- the parent PData objectpublic PData getParent()
getParent
in interface PData
public PData getRootParent()
getRootParent
in interface PData
public void setInheritParents(boolean val)
setInheritParents
in interface PData
val
- true if we should inherit parentspublic boolean isInheritParents()
isInheritParents
in interface PData
public void putState(Object key, Object val)
putState
in interface StateMap
key
- the key objectval
- the value objectpublic Object getState(Object key)
getState
in interface StateMap
key
- the key object
public Object removeState(Object key)
removeState
in interface StateMap
key
- the key object
public Set getStateKeys()
getStateKeys
in interface StateMap
public Map getStateStore()
getStateStore
in interface StateMap
public void clearState()
clearState
in interface StateMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |