public class UDNodeDeviceProperties
extends java.lang.Object
Constructor and Description |
---|
UDNodeDeviceProperties() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 IDpublic com.universaldevices.common.properties.UDProperty<?> getByCategoryId(java.lang.String categoryId)
categoryId
- The category IDpublic 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.