|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.morph.context.contexts.BaseContext
net.sf.morph.context.contexts.BaseHierarchicalContext
public abstract class BaseHierarchicalContext
Convenient base class for hierarchical Contexts. Validates arguments and
takes care of logging and exception handling. Also implements the
Map interface.
net.sf.morph.context.support.BaseContext,
HierarchicalContext| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
BaseHierarchicalContext()
Creates a new, empty context. |
|
BaseHierarchicalContext(Context parentContext)
Creates a new, empty context with the specified parent. |
|
| Method Summary | |
|---|---|
protected abstract java.lang.Object |
getHierarchicalImpl(java.lang.String propertyName)
|
protected java.lang.Object |
getImpl(java.lang.String propertyName)
Implement get(propertyName). |
Context |
getParentContext()
Retrieves this context's parent context. |
protected abstract java.lang.String[] |
getPropertyNamesHierarchicalImpl()
|
protected java.lang.String[] |
getPropertyNamesImpl()
Implement getPropertyNames() |
protected abstract void |
setHierarchicalImpl(java.lang.String propertyName,
java.lang.Object propertyValue)
|
protected void |
setImpl(java.lang.String propertyName,
java.lang.Object propertyValue)
Implement set(propertyName, propertyValue). |
void |
setParentContext(Context parentContext)
Sets this context's parent context. |
| Methods inherited from class net.sf.morph.context.contexts.BaseContext |
|---|
clear, containsKey, containsValue, entrySet, get, get, get, get, get, getContextMapBridge, getConverter, getLanguage, getLog, getPropertyNames, isEmpty, keySet, put, putAll, remove, set, set, setContextMapBridge, setConverter, setLanguage, setLog, size, values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.morph.context.HierarchicalContext |
|---|
get, getPropertyNames, set |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public BaseHierarchicalContext()
public BaseHierarchicalContext(Context parentContext)
| Method Detail |
|---|
protected abstract java.lang.Object getHierarchicalImpl(java.lang.String propertyName)
throws java.lang.Exception
java.lang.Exception
protected abstract java.lang.String[] getPropertyNamesHierarchicalImpl()
throws java.lang.Exception
java.lang.Exception
protected abstract void setHierarchicalImpl(java.lang.String propertyName,
java.lang.Object propertyValue)
throws java.lang.Exception
java.lang.Exception
protected final java.lang.Object getImpl(java.lang.String propertyName)
throws java.lang.Exception
BaseContextget(propertyName).
getImpl in class BaseContextpropertyName - to get
java.lang.Exception - in case of errors
protected final java.lang.String[] getPropertyNamesImpl()
throws java.lang.Exception
BaseContext
getPropertyNamesImpl in class BaseContextjava.lang.Exception - if errors occur
protected final void setImpl(java.lang.String propertyName,
java.lang.Object propertyValue)
throws java.lang.Exception
BaseContextset(propertyName, propertyValue).
setImpl in class BaseContextpropertyName - to setpropertyValue - to set
java.lang.Exception - in case of errorspublic void setParentContext(Context parentContext)
setParentContext in interface HierarchicalContextparentContext - this context's parent contextpublic Context getParentContext()
HierarchicalContext
getParentContext in interface HierarchicalContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||