org.fourthline.cling.model.meta
Class StateVariable<S extends Service>
java.lang.Object
org.fourthline.cling.model.meta.StateVariable<S>
- All Implemented Interfaces:
- Validatable
public class StateVariable<S extends Service>
- extends Object
- implements Validatable
The metadata of a named state variable.
- Author:
- Christian Bauer
StateVariable
public StateVariable(String name,
StateVariableTypeDetails type)
StateVariable
public StateVariable(String name,
StateVariableTypeDetails type,
StateVariableEventDetails eventDetails)
getName
public String getName()
getTypeDetails
public StateVariableTypeDetails getTypeDetails()
getEventDetails
public StateVariableEventDetails getEventDetails()
getService
public S getService()
validate
public List<ValidationError> validate()
- Specified by:
validate
in interface Validatable
- Returns:
- An empty
List
if all rules validated properly, otherwise, the detected errors.
isModeratedNumericType
public boolean isModeratedNumericType()
deepCopy
public StateVariable<S> deepCopy()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.