Package jade.content.abs
Class AbsPrimitiveSlotsHolder
- java.lang.Object
-
- jade.content.abs.AbsObjectImpl
-
- jade.content.abs.AbsPrimitiveSlotsHolder
-
- All Implemented Interfaces:
AbsObject,Serializable,Serializable
- Direct Known Subclasses:
AbsConcept,AbsPredicate
public class AbsPrimitiveSlotsHolder extends AbsObjectImpl
This class is not intended to be used by programmers.- Author:
- Giovanni Caire - TILAB
- See Also:
- Serialized Form
-
-
Field Summary
-
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_REFERENCE, ABS_VARIABLE, UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbsPrimitiveSlotsHolder(String typeName)Construct an Abstract descriptor to hold an object of the proper type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(String name)Utility method that allows getting the value of attributes of typebooleandirectly as abooleani.e.byte[]getByteSequence(String name)Utility method that allows getting the value of attributes of typebyte[]directly as abyte[]i.e.DategetDate(String name)Utility method that allows getting the value of attributes of typeDatedirectly as aDatei.e.doublegetDouble(String name)Utility method that allows getting the value of attributes of typedoubledirectly as adoublei.e.floatgetFloat(String name)Utility method that allows getting the value of attributes of typefloatdirectly as afloati.e.intgetInteger(String name)Utility method that allows getting the value of attributes of typeintdirectly as aninti.e.longgetLong(String name)Utility method that allows getting the value of attributes of typelongdirectly as alongi.e.StringgetString(String name)Utility method that allows getting the value of attributes of typeStringdirectly as aStringi.e.voidset(String name, boolean value)Utility method that allows setting attributes of typebooleanwithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, byte[] value)Utility method that allows setting attributes of typebyte[]without the need of wrapping the new value into anAbsPrimitive.voidset(String name, double value)Utility method that allows setting attributes of typedoublewithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, float value)Utility method that allows setting attributes of typefloatwithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, int value)Utility method that allows setting attributes of typeintwithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, long value)Utility method that allows setting attributes of typelongwithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, AbsObject value)Sets an attribute of the object held by this abstract descriptor.voidset(String name, String value)Utility method that allows setting attributes of typeStringwithout the need of wrapping the new value into anAbsPrimitive.voidset(String name, Date value)Utility method that allows setting attributes of typeDatewithout the need of wrapping the new value into anAbsPrimitive.-
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getAbsObject, getAbsType, getCount, getNames, getTypeName, getValues, hashCode, isGrounded, toString
-
-
-
-
Constructor Detail
-
AbsPrimitiveSlotsHolder
protected AbsPrimitiveSlotsHolder(String typeName)
Construct an Abstract descriptor to hold an object of the proper type.- Parameters:
typeName- The name of the type of the object held by this abstract descriptor.
-
-
Method Detail
-
set
public void set(String name, String value)
Utility method that allows setting attributes of typeStringwithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, AbsObject value)
Description copied from class:AbsObjectImplSets an attribute of the object held by this abstract descriptor.- Overrides:
setin classAbsObjectImpl- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute. Ifvalueis null the current mapping withname(if any) is removed.
-
set
public void set(String name, boolean value)
Utility method that allows setting attributes of typebooleanwithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, int value)
Utility method that allows setting attributes of typeintwithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, long value)
Utility method that allows setting attributes of typelongwithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, float value)
Utility method that allows setting attributes of typefloatwithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, double value)
Utility method that allows setting attributes of typedoublewithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, Date value)
Utility method that allows setting attributes of typeDatewithout the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
set
public void set(String name, byte[] value)
Utility method that allows setting attributes of typebyte[]without the need of wrapping the new value into anAbsPrimitive.- Parameters:
name- The name of the attribute to be set.value- The new value of the attribute.
-
getString
public String getString(String name)
Utility method that allows getting the value of attributes of typeStringdirectly as aStringi.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getBoolean
public boolean getBoolean(String name)
Utility method that allows getting the value of attributes of typebooleandirectly as abooleani.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getInteger
public int getInteger(String name)
Utility method that allows getting the value of attributes of typeintdirectly as aninti.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getLong
public long getLong(String name)
Utility method that allows getting the value of attributes of typelongdirectly as alongi.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getFloat
public float getFloat(String name)
Utility method that allows getting the value of attributes of typefloatdirectly as afloati.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getDouble
public double getDouble(String name)
Utility method that allows getting the value of attributes of typedoubledirectly as adoublei.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getDate
public Date getDate(String name)
Utility method that allows getting the value of attributes of typeDatedirectly as aDatei.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
getByteSequence
public byte[] getByteSequence(String name)
Utility method that allows getting the value of attributes of typebyte[]directly as abyte[]i.e. not wrapped into anAbsPrimitive/code>.- Parameters:
name- The name of the attribute to be retrieved.value- The value of the attribute.
-
-