public class Property extends Object implements Concept
property
type, a pair of a
name and value.FIPAManagementOntology
,
Serialized FormModifier and Type | Field and Description |
---|---|
private String |
name |
private Object |
value |
Constructor and Description |
---|
Property()
Default constructor.
|
Property(String name,
Object value)
Create a property object, with the given name and value pair.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getName()
Retrieve the name of this property object.
|
private Serializable |
getsvalue() |
Object |
getValue()
Retrieve the value of this property object, associated with the
property name.
|
boolean |
match(Property p) |
void |
setName(String n)
Set the name of the property object.
|
private void |
setsvalue(Serializable s) |
void |
setValue(Object o)
Set the value for this property object, attached to the
property name.
|
public Property()
public void setName(String n)
n
- The new name for this property.public String getName()
null
if no name was set.public void setValue(Object o)
o
- The new Java object to attach to the property name.public Object getValue()
null
if no
value was set.private void setsvalue(Serializable s)
private Serializable getsvalue()
public boolean match(Property p)