|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.universaldevices.device.model.UDNodeDeviceProperties
public class UDNodeDeviceProperties
All access to node device properties is synchronized, therefore it is always safe to use anything returned by the methods in this class.
Constructor Summary | |
---|---|
UDNodeDeviceProperties()
|
Method Summary | |
---|---|
void |
addAll(java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> ps)
Adds or replaces all the properties in the given collection |
void |
addProperty(com.universaldevices.common.properties.UDProperty<?> p)
Adds the property based on its ID, replacing an existing entry with the same ID if necessary. |
boolean |
containsPropertyType(java.lang.String pType)
Returns true if the property type is recognized. |
com.universaldevices.common.properties.UDProperty<?> |
getByCategoryId(java.lang.String categoryId)
Return the first property found with the specified category ID, or null if not found. |
java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> |
getProperties()
Returns all of the properties in a collection. |
com.universaldevices.common.properties.UDProperty<?> |
getProperty(java.lang.String id)
Gets the property based on its ID, returning null if it doesn't exist. |
void |
removeAll()
Removes all properties |
static boolean |
saveProperties(UDNode node,
java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> props)
Save to the ISY, All properties in the given list as changed or new node device properties for the specified node. |
static boolean |
saveProperty(UDNode node,
com.universaldevices.common.properties.UDProperty<?> prop)
Save the specified property to the ISY. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDNodeDeviceProperties()
Method Detail |
---|
public void removeAll()
public java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> getProperties()
public com.universaldevices.common.properties.UDProperty<?> getProperty(java.lang.String id)
id
- The ID of the property to getpublic boolean containsPropertyType(java.lang.String pType)
pType
- The property type ID
public com.universaldevices.common.properties.UDProperty<?> getByCategoryId(java.lang.String categoryId)
categoryId
- The category ID
public void addAll(java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> ps)
ps
- The list of properties to addpublic void addProperty(com.universaldevices.common.properties.UDProperty<?> p)
p
- The property to addpublic static boolean saveProperties(UDNode node, java.util.Collection<com.universaldevices.common.properties.UDProperty<?>> props)
node
- Node to receive the changed properties.props
- The changed properties.
public static boolean saveProperty(UDNode node, com.universaldevices.common.properties.UDProperty<?> prop)
node
- Node to receive the changed properties.prop
- The property to save.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |