public class InformationData extends Information implements java.io.Serializable
Constructor and Description |
---|
InformationData(java.lang.String informationClass)
Constructor.
|
InformationData(java.lang.String informationClass,
java.lang.String mainValue)
Constructor.
|
InformationData(java.util.UUID originUuid,
java.lang.String informationClass)
Constructor.
|
InformationData(java.util.UUID originUuid,
java.lang.String informationClass,
java.lang.String mainValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addInformation(java.lang.String information,
java.lang.String value)
Adds a information to this object.
|
void |
addProperty(java.lang.String property,
java.lang.String value)
Adds a information property to this object.
|
boolean |
containsInformation(java.lang.String information)
Informs if the object contains a specific information.
|
boolean |
containsProperty(java.lang.String property)
Informs if the object contains a specific property.
|
boolean |
equals(java.lang.Object otherObj) |
java.lang.String |
getInformation(java.lang.String information)
Gets a information included on this object.
|
java.lang.String[] |
getInformationsProvided()
Gets a list with all the information names included.
|
java.lang.String |
getMainInformation()
Gets the main information included on this object.
|
java.util.UUID |
getOriginUuid()
Gets the device uuid where the information was originated.
|
java.lang.String[] |
getPropertiesProvided()
Gets a list with all the properties names included.
|
java.lang.String |
getProperty(java.lang.String property)
Gets a property included on this object.
|
void |
setOriginUuid(java.util.UUID originUuid)
Sets the device where the information was originated.
|
getInformationClass, getInformationGroup
public InformationData(java.util.UUID originUuid, java.lang.String informationClass)
originUuid
- the device uuid where the information was createdinformationClass
- the class of the information, e.g. 'location' or
'energy'public InformationData(java.util.UUID originUuid, java.lang.String informationClass, java.lang.String mainValue)
originUuid
- the device uuid where the information was createdinformationClass
- the class of the information, e.g. 'location' or
'energy'mainValue
- the main value of informationClasspublic InformationData(java.lang.String informationClass)
informationClass
- the class of the information, e.g. 'location' or
'energy'public InformationData(java.lang.String informationClass, java.lang.String mainValue)
informationClass
- the class of the information, e.g. 'location' or
'energy'mainValue
- the main value of informationClasspublic void setOriginUuid(java.util.UUID originUuid)
originUuid
- the devicepublic java.util.UUID getOriginUuid()
public void addInformation(java.lang.String information, java.lang.String value)
information
- the information namevalue
- the context information valuepublic java.lang.String getInformation(java.lang.String information)
information
- the information namepublic java.lang.String getMainInformation()
public boolean containsInformation(java.lang.String information)
information
- the information namepublic java.lang.String[] getInformationsProvided()
public void addProperty(java.lang.String property, java.lang.String value)
property
- the property namevalue
- the property valuepublic java.lang.String getProperty(java.lang.String property)
property
- the property namepublic boolean containsProperty(java.lang.String property)
property
- the property namepublic java.lang.String[] getPropertiesProvided()
public boolean equals(java.lang.Object otherObj)
equals
in class Information