public class Property extends java.lang.Object implements Concept
property
type, a pair of a
name and value.FIPAManagementOntology
,
Serialized FormConstructor and Description |
---|
Property()
Default constructor.
|
Property(java.lang.String name,
java.lang.Object value)
Create a property object, with the given name and value pair.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
static java.util.Properties |
convertPropertyListToProperties(java.util.List<Property> pp) |
java.lang.String |
getName()
Retrieve the name of this property object.
|
java.lang.Object |
getValue()
Retrieve the value of this property object, associated with the
property name.
|
boolean |
match(Property p) |
void |
setName(java.lang.String n)
Set the name of the property object.
|
void |
setValue(java.lang.Object o)
Set the value for this property object, attached to the
property name.
|
public Property()
public Property(java.lang.String name, java.lang.Object value)
name
- The name of the property.value
- The Java object associated with the given name.public void setName(java.lang.String n)
n
- The new name for this property.public java.lang.String getName()
null
if no name was set.public void setValue(java.lang.Object o)
o
- The new Java object to attach to the property name.public java.lang.Object getValue()
null
if no
value was set.public static java.util.Properties convertPropertyListToProperties(java.util.List<Property> pp)
public boolean match(Property p)
public java.lang.Object clone()
clone
in class java.lang.Object