org.objectweb.jonathan.apis.kernel
Interface Element
- TreeElement
- JContextFactory.ContextElement, JElement, JTreeElement
The Element interface represents an element in a context.
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.
|
String | getName() - Returns the (local) name of the element, in the context it belongs to.
|
Class | getType() - Returns the type of the target element, as a Class.
|
Object | getValue() - Returns the value of the target element, if its type is an object reference
type.
|
getComponent
public Component getComponent()
Returns the component contained in the target element.
- the component contained in the target element.
getContainer
public Component getContainer()
Returns the context containing the target element, if any, null otherwise.
- the context containing the target element, if any, null otherwise.
getIntValue
public int getIntValue()
Returns the value of the target element, if its class is an integer class.
If the target element has an object reference type, Integer.MAX_VALUE is
returned.
- the value of the target element.
getName
public String getName()
Returns the (local) name of the element, in the context it belongs to.
- the (local) name of the element, in the context it belongs to.
getType
public Class getType()
Returns the type of the target element, as a Class.
- the type of the target element, as a Class.
getValue
public Object getValue()
Returns the value of the target element, if its type is an object reference
type.
If the target element is of an integral type,
NO_VALUE
} is returned.
- the value of the target element.