|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonathan.libs.kernel.JElement
Basic implementation of a runtime element. Its behaviour is a property component's. Must be subtyped to behave differently.
| Constructor Summary | |
JElement(Component _container,
java.lang.String _name,
Component _target)
|
|
| Method Summary | |
Component |
getComponent()
Returns the component contained in the target element. |
Component |
getContainer()
Returns the context containing the target element, if any, null otherwise. |
int |
getIntValue()
Returns the value of the target element, if its class is an integer class. |
java.lang.String |
getName()
Returns the (local) name of the element, in the context it belongs to. |
java.lang.Class |
getType()
Returns the type of the target element, as a Class. |
java.lang.Object |
getValue()
Returns the value of the target element, if its type is an object reference type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JElement(Component _container,
java.lang.String _name,
Component _target)
| Method Detail |
public java.lang.String getName()
Element
getName in interface Elementpublic Component getComponent()
Element
getComponent in interface Elementpublic java.lang.Class getType()
Element
getType in interface Elementpublic java.lang.Object getValue()
Element
If the target element is of an integral type,
NO_VALUE} is returned.
getValue in interface Elementpublic int getIntValue()
ElementIf the target element has an object reference type, Integer.MAX_VALUE is returned.
getIntValue in interface Elementpublic Component getContainer()
Element
getContainer in interface Elementpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||