|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.content.abs.AbsExtendedPrimitive
public class AbsExtendedPrimitive
An extended abstract descriptor that can hold a generic primitive types
(eg. java.math.BigDecimal) not supported by AbsPrimitive.
| Field Summary | |
|---|---|
static int |
ABS_EXTENDED_PRIMITIVE
|
| Fields inherited from interface jade.content.abs.AbsObject |
|---|
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONCEPT_SLOT_FUNCTION, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN |
| Constructor Summary | |
|---|---|
AbsExtendedPrimitive(java.lang.String typeName)
Construct an Abstract descriptor to hold a extended-primitive of the proper type (e.g. java.math.BigInteger...). |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
get()
|
AbsObject |
getAbsObject(java.lang.String name)
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute --> Just return null |
int |
getAbsType()
|
int |
getCount()
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute --> Just return 0 |
java.lang.String[] |
getNames()
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute --> Just return null |
java.lang.String |
getTypeName()
|
int |
hashCode()
|
boolean |
isGrounded()
Tests if this AbsExtendedPrimitive is grounded. |
void |
set(java.lang.Object value)
Set the value of this AbsExtendedPrimitive to the given value. |
java.lang.String |
toString()
|
static AbsExtendedPrimitive |
wrap(java.lang.Object value)
Create an AbsExtendedPrimitive of type value.getClass()
containing a given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ABS_EXTENDED_PRIMITIVE
| Constructor Detail |
|---|
public AbsExtendedPrimitive(java.lang.String typeName)
typeName - The name of the type of the extended-primitive held by
this descriptor.| Method Detail |
|---|
public static AbsExtendedPrimitive wrap(java.lang.Object value)
value.getClass()
containing a given value.
public void set(java.lang.Object value)
value - The new value
java.lang.IllegalArgumentException - If the type of this AbsExtendedPrimitive
is not correct.public java.lang.Object get()
public java.lang.String getTypeName()
getTypeName in interface AbsObjectpublic AbsObject getAbsObject(java.lang.String name)
getAbsObject in interface AbsObjectname - The name of the attribute.
public java.lang.String[] getNames()
getNames in interface AbsObjectpublic boolean isGrounded()
isGrounded in interface AbsObjecttrue if the object is grounded.public int getCount()
getCount in interface AbsObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getAbsType()
getAbsType in interface AbsObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||