org.ws4d.java.configuration
Class DevicesPropertiesHandler

java.lang.Object
  extended by org.ws4d.java.configuration.DevicesPropertiesHandler
All Implemented Interfaces:
PropertiesHandler

public class DevicesPropertiesHandler
extends java.lang.Object
implements PropertiesHandler

Class handles device properties.


Field Summary
 
Fields inherited from interface org.ws4d.java.configuration.PropertiesHandler
FALSE, TRUE
 
Method Summary
 void finishedSection(int depth)
          This method indicates the PropertiesHandler, that the last section with the given depth has been read completely.
static java.lang.String getClassName()
          Returns class name if object of this class has already been created, else null.
 DeviceProperties getDeviceProperties(java.lang.Integer configurationId)
          Gets device properties by configuration id.
static DevicesPropertiesHandler getInstance()
          Returns instance of the devices properties handler.
 void setProperties(PropertyHeader header, Property property)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DevicesPropertiesHandler getInstance()
Returns instance of the devices properties handler.

Returns:
the singleton instance of the devices properties

getClassName

public static java.lang.String getClassName()
Returns class name if object of this class has already been created, else null.

Returns:
Class name if object of this class has already been created, else null.

setProperties

public void setProperties(PropertyHeader header,
                          Property property)
Specified by:
setProperties in interface PropertiesHandler
Parameters:
header - header of section
property - property within section

finishedSection

public void finishedSection(int depth)
Description copied from interface: PropertiesHandler
This method indicates the PropertiesHandler, that the last section with the given depth has been read completely.

Specified by:
finishedSection in interface PropertiesHandler
Parameters:
depth - depth of section.

getDeviceProperties

public DeviceProperties getDeviceProperties(java.lang.Integer configurationId)
Gets device properties by configuration id.

Parameters:
configurationId -
Returns:
device properties