public class JElement extends java.lang.Object implements Element
Constructor and Description |
---|
JElement(Component _container,
java.lang.String _name,
Component _target) |
Modifier and Type | Method and Description |
---|---|
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() |
public java.lang.String getName()
Element
public Component getComponent()
Element
getComponent
in interface Element
public java.lang.Class getType()
Element
public java.lang.Object getValue()
Element
If the target element is of an integral type,
NO_VALUE
} is returned.
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