|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jonathan.libs.kernel.JContextFactory.ContextElement
Class of the context elements used by JContextFactory.
| Field Summary | |
protected int |
int_value
the integer value |
protected String |
name
the name |
protected Class |
type
the type |
protected Object |
value
the object reference value |
| Constructor Summary | |
protected |
JContextFactory.ContextElement()
Constructs a new context element. |
| Method Summary | |
boolean |
checkType()
|
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. |
protected void |
reset()
Resets the element, setting all object reference members to null, and possibly recycling the element in a pool. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String name
protected Class type
protected Object value
protected int int_value
| Constructor Detail |
protected JContextFactory.ContextElement()
| Method Detail |
public Class getType()
ElementgetType in interface Elementorg.objectweb.jonathan.apis.kernel.Elementpublic Object getValue()
Element
If the target element is of an integral type,
NO_VALUE} is returned.
getValue in interface Elementorg.objectweb.jonathan.apis.kernel.Elementpublic int getIntValue()
ElementIf the target element has an object reference type, Integer.MAX_VALUE is returned.
getIntValue in interface Elementorg.objectweb.jonathan.apis.kernel.Elementpublic String getName()
ElementgetName in interface Elementorg.objectweb.jonathan.apis.kernel.Elementpublic boolean checkType()
public String toString()
toString in class Objectprotected void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||