public class AnnotationStateVariableBinder extends Object
Modifier and Type | Field and Description |
---|---|
protected StateVariableAccessor |
accessor |
protected UpnpStateVariable |
annotation |
protected String |
name |
protected Set<Class> |
stringConvertibleTypes |
Constructor and Description |
---|
AnnotationStateVariableBinder(UpnpStateVariable annotation,
String name,
StateVariableAccessor accessor,
Set<Class> stringConvertibleTypes) |
Modifier and Type | Method and Description |
---|---|
protected Datatype |
createDatatype() |
protected String |
createDefaultValue(Datatype datatype) |
protected StateVariable |
createStateVariable() |
StateVariableAccessor |
getAccessor() |
protected StateVariableAllowedValueRange |
getAllowedRangeFromProvider() |
protected StateVariableAllowedValueRange |
getAllowedValueRange(long min,
long max,
long step) |
protected String[] |
getAllowedValues(Class enumType) |
protected String[] |
getAllowedValuesFromProvider() |
UpnpStateVariable |
getAnnotation() |
String |
getName() |
Set<Class> |
getStringConvertibleTypes() |
protected UpnpStateVariable annotation
protected String name
protected StateVariableAccessor accessor
public AnnotationStateVariableBinder(UpnpStateVariable annotation, String name, StateVariableAccessor accessor, Set<Class> stringConvertibleTypes)
public UpnpStateVariable getAnnotation()
public String getName()
public StateVariableAccessor getAccessor()
protected StateVariable createStateVariable() throws LocalServiceBindingException
LocalServiceBindingException
protected Datatype createDatatype() throws LocalServiceBindingException
LocalServiceBindingException
protected String createDefaultValue(Datatype datatype) throws LocalServiceBindingException
LocalServiceBindingException
protected String[] getAllowedValues(Class enumType) throws LocalServiceBindingException
LocalServiceBindingException
protected StateVariableAllowedValueRange getAllowedValueRange(long min, long max, long step) throws LocalServiceBindingException
LocalServiceBindingException
protected String[] getAllowedValuesFromProvider() throws LocalServiceBindingException
LocalServiceBindingException
protected StateVariableAllowedValueRange getAllowedRangeFromProvider() throws LocalServiceBindingException
LocalServiceBindingException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.