|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.libs.kernel.JElement
public class 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 Element
public Component getComponent()
Element
getComponent
in interface Element
public java.lang.Class getType()
Element
getType
in interface Element
public java.lang.Object getValue()
Element
If the target element is of an integral type,
NO_VALUE
} is returned.
getValue
in interface Element
public int getIntValue()
Element
If the target element has an object reference type, Integer.MAX_VALUE is returned.
getIntValue
in interface Element
public Component getContainer()
Element
getContainer
in interface Element
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |