|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.datamixer.config.ElementBase
| Constructor Summary | |
ElementBase()
|
|
| Method Summary | |
boolean |
addElement(DatamixerConfig element)
Add element to self as a nested element. |
protected void |
addField(java.lang.reflect.Field field)
Get a field. |
void |
addListener(DatamixerConfig listener)
Add listener to self as a nested listener. |
protected void |
doGetSupportedAttrs(java.util.List names)
A list of names of supported attributes. |
protected void |
doInitialize()
|
protected void |
error(java.lang.Exception e)
|
protected void |
error(java.lang.String errmsg)
|
protected void |
error(java.lang.String errmsg,
java.lang.Exception e)
|
DatamixerContext |
findContext(int scope)
Get the context at scope. |
java.lang.Object |
findInContext(java.lang.String name)
Finds an object by name in the nearest enclosing scope. |
java.lang.Object |
findInContext(java.lang.String name,
int scope)
Finds an object by name in scope. |
protected DatamixerContext |
findNearestContext()
Get the context at the nearest enclosing scope. |
java.lang.Object |
getAttribute(java.lang.String name)
Get the value of the attribute named name. |
DatamixerContext |
getContext()
Get the context. |
DatamixerConfig |
getElement(int index)
Returns the element at index. |
java.util.List |
getElements()
Get the list of nested elements. |
protected java.lang.reflect.Field |
getField(java.lang.String name)
Get the value of the attribute named name. |
protected java.util.Map |
getFields()
Get the fields map. |
protected java.lang.String |
getId()
|
java.lang.Object |
getImpl()
Return the implementation. |
int |
getLineNumber()
|
java.util.List |
getListeners()
Get the list of listeners. |
java.lang.String |
getNamespace()
Get the namespace. |
DatamixerConfig |
getParent()
Gets the parent. |
protected DatamixerConfig |
getParentByTag(java.lang.String tag)
Returns this, or the first parent whose tag is tag. |
java.lang.String |
getQName()
Get the qualified name. |
java.lang.Integer |
getScope()
|
java.util.List |
getSupportedAttrs()
Returns a list of names of supported attributes. |
java.lang.String |
getSystemId()
|
java.lang.String |
getTag()
Get the tag. |
java.lang.String |
getText()
Get the text; |
void |
initialize()
initialize |
protected void |
initializeElements()
|
boolean |
setAttribute(java.lang.String name,
java.lang.Object value)
Set value into the attribute named name. |
void |
setId(java.lang.String value)
|
void |
setImpl(java.lang.Object impl)
Set the implementation. |
void |
setInContext(java.lang.String name,
java.lang.Object value)
Does nothing if name is null. |
void |
setInContext(java.lang.String name,
java.lang.Object value,
java.lang.Integer scope)
Does nothing if name is null. |
void |
setLineNumber(int value)
|
protected void |
setListenerImpls(DatamixerEventGenerator parentGenerator)
Add listeners to parentGenerator, or generator attribute if
set. |
void |
setNamespace(java.lang.String namespace)
Set the namespace. |
void |
setParent(DatamixerConfig parent)
Sets the parent. |
void |
setScope(int value)
|
void |
setScope(java.lang.Integer value)
|
void |
setScope(java.lang.String tag)
|
void |
setSystemId(java.lang.String value)
|
void |
setTag(java.lang.String tag)
Set the tag. |
void |
setText(java.lang.String text)
Set the text; |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ElementBase()
| Method Detail |
public void initialize()
throws DatamixerException
DatamixerConfig
initialize in interface DatamixerConfigDatamixerException
protected void doInitialize()
throws DatamixerException
DatamixerException
protected void initializeElements()
throws DatamixerException
DatamixerExceptionpublic java.lang.Object getImpl()
getImpl in interface DatamixerConfigpublic void setImpl(java.lang.Object impl)
setImpl in interface DatamixerConfigpublic DatamixerContext getContext()
PageConfig and ApplicationConfig.
getContext in interface DatamixerConfigpublic DatamixerContext findContext(int scope)
DatamixerContext.SCOPE_APPLICATION or
DatamixerContext.SCOPE_PAGE.
findContext in interface DatamixerConfigpublic java.lang.Object findInContext(java.lang.String name)
name in the nearest enclosing scope.
findInContext in interface DatamixerConfig
public java.lang.Object findInContext(java.lang.String name,
int scope)
name in scope.
findInContext in interface DatamixerConfig
public void setInContext(java.lang.String name,
java.lang.Object value)
name is null. Otherwise sets
object by name into the nearest enclosing
scope.
setInContext in interface DatamixerConfig
public void setInContext(java.lang.String name,
java.lang.Object value,
java.lang.Integer scope)
name is null. Otherwise sets
object by name into scope, or into
the nearest enclosing scope, if scope is null.
setInContext in interface DatamixerConfigprotected DatamixerContext findNearestContext()
public java.lang.String getQName()
getQName in interface DatamixerConfigpublic java.lang.String getNamespace()
getNamespace in interface DatamixerConfigpublic void setNamespace(java.lang.String namespace)
setNamespace in interface DatamixerConfigpublic java.lang.String getTag()
getTag in interface DatamixerConfigpublic void setTag(java.lang.String tag)
setTag in interface DatamixerConfigpublic java.lang.Object getAttribute(java.lang.String name)
name.
getAttribute in interface DatamixerConfigprotected java.lang.reflect.Field getField(java.lang.String name)
name.
protected void addField(java.lang.reflect.Field field)
protected java.util.Map getFields()
public boolean setAttribute(java.lang.String name,
java.lang.Object value)
value into the attribute named name.
Returns true if element was set,
false otherwise.
setAttribute in interface DatamixerConfigpublic java.util.List getSupportedAttrs()
getSupportedAttrs in interface DatamixerConfigprotected void doGetSupportedAttrs(java.util.List names)
public DatamixerConfig getParent()
getParent in interface DatamixerConfigpublic void setParent(DatamixerConfig parent)
setParent in interface DatamixerConfigpublic java.util.List getElements()
getElements in interface DatamixerConfigpublic DatamixerConfig getElement(int index)
index.
public boolean addElement(DatamixerConfig element)
element to self as a nested element. Returns
true if element was set, false
otherwise.
addElement in interface DatamixerConfigpublic java.util.List getListeners()
public void addListener(DatamixerConfig listener)
listener to self as a nested listener. Returns
true if listener was set, false
otherwise.
protected void setListenerImpls(DatamixerEventGenerator parentGenerator)
throws DatamixerException
parentGenerator, or generator attribute if
set.
DatamixerExceptionpublic java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String toString()
protected java.lang.String getId()
public void setId(java.lang.String value)
public java.lang.Integer getScope()
public void setScope(java.lang.Integer value)
public void setScope(int value)
public void setScope(java.lang.String tag)
protected DatamixerConfig getParentByTag(java.lang.String tag)
tag.
public java.lang.String getSystemId()
getSystemId in interface DatamixerConfigpublic void setSystemId(java.lang.String value)
setSystemId in interface DatamixerConfigpublic int getLineNumber()
getLineNumber in interface DatamixerConfigpublic void setLineNumber(int value)
setLineNumber in interface DatamixerConfig
protected void error(java.lang.String errmsg)
throws DatamixerException
DatamixerException
protected void error(java.lang.Exception e)
throws DatamixerException
DatamixerException
protected void error(java.lang.String errmsg,
java.lang.Exception e)
throws DatamixerException
DatamixerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||