Package jade.domain.FIPAAgentManagement
Class Property
- java.lang.Object
-
- jade.domain.FIPAAgentManagement.Property
-
- All Implemented Interfaces:
Concept,Term,Serializable,Serializable
- Direct Known Subclasses:
MultiValueProperty
public class Property extends Object implements Concept
This class implements thepropertytype, a pair of a name and value.- Version:
- $Date$ $Revision$
- Author:
- Fabio Bellifemine - CSELT S.p.A.
- See Also:
FIPAManagementOntology, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()static PropertiesconvertPropertyListToProperties(List<Property> pp)StringgetName()Retrieve the name of this property object.ObjectgetValue()Retrieve the value of this property object, associated with the property name.booleanmatch(Property p)voidsetName(String n)Set the name of the property object.voidsetValue(Object o)Set the value for this property object, attached to the property name.StringtoString()
-
-
-
Method Detail
-
setName
public void setName(String n)
Set the name of the property object.- Parameters:
n- The new name for this property.
-
getName
public String getName()
Retrieve the name of this property object.- Returns:
- The string that is the name of this property, or
nullif no name was set.
-
setValue
public void setValue(Object o)
Set the value for this property object, attached to the property name.- Parameters:
o- The new Java object to attach to the property name.
-
getValue
public Object getValue()
Retrieve the value of this property object, associated with the property name.- Returns:
- The value of this property, or
nullif no value was set.
-
convertPropertyListToProperties
public static Properties convertPropertyListToProperties(List<Property> pp)
-
match
public boolean match(Property p)
-
-