jade.content.abs
Class AbsPrimitiveSlotsHolder

java.lang.Object
  |
  +--jade.content.abs.AbsObjectImpl
        |
        +--jade.content.abs.AbsPrimitiveSlotsHolder
All Implemented Interfaces:
AbsObject, java.io.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

Constructor Summary
protected AbsPrimitiveSlotsHolder(java.lang.String typeName)
          Construct an Abstract descriptor to hold an object of the proper type.
 
Method Summary
 boolean getBoolean(java.lang.String name)
          Utility method that allows getting the value of attributes of type boolean directly as a boolean i.e. not wrapped into an AbsPrimitive/code>.
 byte[] getByteSequence(java.lang.String name)
          Utility method that allows getting the value of attributes of type byte[] directly as a byte[] i.e. not wrapped into an AbsPrimitive/code>.
 java.util.Date getDate(java.lang.String name)
          Utility method that allows getting the value of attributes of type Date directly as a Date i.e. not wrapped into an AbsPrimitive/code>.
 double getDouble(java.lang.String name)
          Utility method that allows getting the value of attributes of type double directly as a double i.e. not wrapped into an AbsPrimitive/code>.
 float getFloat(java.lang.String name)
          Utility method that allows getting the value of attributes of type float directly as a float i.e. not wrapped into an AbsPrimitive/code>.
 int getInteger(java.lang.String name)
          Utility method that allows getting the value of attributes of type int directly as an int i.e. not wrapped into an AbsPrimitive/code>.
 long getLong(java.lang.String name)
          Utility method that allows getting the value of attributes of type long directly as a long i.e. not wrapped into an AbsPrimitive/code>.
 java.lang.String getString(java.lang.String name)
          Utility method that allows getting the value of attributes of type String directly as a String i.e. not wrapped into an AbsPrimitive/code>.
 void set(java.lang.String name, AbsObject value)
          Sets an attribute of the object held by this abstract descriptor.
 void set(java.lang.String name, boolean value)
          Utility method that allows setting attributes of type boolean without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, byte[] value)
          Utility method that allows setting attributes of type byte[] without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, java.util.Date value)
          Utility method that allows setting attributes of type Date without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, double value)
          Utility method that allows setting attributes of type double without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, float value)
          Utility method that allows setting attributes of type float without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, int value)
          Utility method that allows setting attributes of type int without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, long value)
          Utility method that allows setting attributes of type long without the need of wrapping the new value into an AbsPrimitive.
 void set(java.lang.String name, java.lang.String value)
          Utility method that allows setting attributes of type String without the need of wrapping the new value into an AbsPrimitive.
 
Methods inherited from class jade.content.abs.AbsObjectImpl
equals, getAbsObject, getCount, getNames, getTypeName, hashCode, isGrounded, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsPrimitiveSlotsHolder

protected AbsPrimitiveSlotsHolder(java.lang.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(java.lang.String name,
                java.lang.String value)
Utility method that allows setting attributes of type String without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                AbsObject value)
Description copied from class: AbsObjectImpl
Sets an attribute of the object held by this abstract descriptor.

Overrides:
set in class AbsObjectImpl
Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute. If value is null the current mapping with name (if any) is removed.

set

public void set(java.lang.String name,
                boolean value)
Utility method that allows setting attributes of type boolean without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                int value)
Utility method that allows setting attributes of type int without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                long value)
Utility method that allows setting attributes of type long without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                float value)
Utility method that allows setting attributes of type float without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                double value)
Utility method that allows setting attributes of type double without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                java.util.Date value)
Utility method that allows setting attributes of type Date without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

set

public void set(java.lang.String name,
                byte[] value)
Utility method that allows setting attributes of type byte[] without the need of wrapping the new value into an AbsPrimitive.

Parameters:
name - The name of the attribute to be set.
value - The new value of the attribute.

getString

public java.lang.String getString(java.lang.String name)
Utility method that allows getting the value of attributes of type String directly as a String i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getBoolean

public boolean getBoolean(java.lang.String name)
Utility method that allows getting the value of attributes of type boolean directly as a boolean i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getInteger

public int getInteger(java.lang.String name)
Utility method that allows getting the value of attributes of type int directly as an int i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getLong

public long getLong(java.lang.String name)
Utility method that allows getting the value of attributes of type long directly as a long i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getFloat

public float getFloat(java.lang.String name)
Utility method that allows getting the value of attributes of type float directly as a float i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getDouble

public double getDouble(java.lang.String name)
Utility method that allows getting the value of attributes of type double directly as a double i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getDate

public java.util.Date getDate(java.lang.String name)
Utility method that allows getting the value of attributes of type Date directly as a Date i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.

getByteSequence

public byte[] getByteSequence(java.lang.String name)
Utility method that allows getting the value of attributes of type byte[] directly as a byte[] i.e. not wrapped into an AbsPrimitive/code>.

Parameters:
name - The name of the attribute to be retrieved.


JADE