org.teleal.cling.binding.annotations
Class AnnotationStateVariableBinder

java.lang.Object
  extended by org.teleal.cling.binding.annotations.AnnotationStateVariableBinder

public class AnnotationStateVariableBinder
extends java.lang.Object

Author:
Christian Bauer

Field Summary
protected  StateVariableAccessor accessor
           
protected  UpnpStateVariable annotation
           
protected  java.lang.String name
           
protected  java.util.Set<java.lang.Class> stringConvertibleTypes
           
 
Constructor Summary
AnnotationStateVariableBinder(UpnpStateVariable annotation, java.lang.String name, StateVariableAccessor accessor, java.util.Set<java.lang.Class> stringConvertibleTypes)
           
 
Method Summary
protected  Datatype createDatatype()
           
protected  java.lang.String createDefaultValue(Datatype datatype)
           
protected  StateVariable createStateVariable()
           
 StateVariableAccessor getAccessor()
           
protected  StateVariableAllowedValueRange getAllowedValueRange()
           
protected  java.lang.String[] getAllowedValues(java.lang.Class enumType)
           
 UpnpStateVariable getAnnotation()
           
 java.lang.String getName()
           
 java.util.Set<java.lang.Class> getStringConvertibleTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

protected UpnpStateVariable annotation

name

protected java.lang.String name

accessor

protected StateVariableAccessor accessor

stringConvertibleTypes

protected java.util.Set<java.lang.Class> stringConvertibleTypes
Constructor Detail

AnnotationStateVariableBinder

public AnnotationStateVariableBinder(UpnpStateVariable annotation,
                                     java.lang.String name,
                                     StateVariableAccessor accessor,
                                     java.util.Set<java.lang.Class> stringConvertibleTypes)
Method Detail

getAnnotation

public UpnpStateVariable getAnnotation()

getName

public java.lang.String getName()

getAccessor

public StateVariableAccessor getAccessor()

getStringConvertibleTypes

public java.util.Set<java.lang.Class> getStringConvertibleTypes()

createStateVariable

protected StateVariable createStateVariable()
                                     throws LocalServiceBindingException
Throws:
LocalServiceBindingException

createDatatype

protected Datatype createDatatype()
                           throws LocalServiceBindingException
Throws:
LocalServiceBindingException

createDefaultValue

protected java.lang.String createDefaultValue(Datatype datatype)
                                       throws LocalServiceBindingException
Throws:
LocalServiceBindingException

getAllowedValues

protected java.lang.String[] getAllowedValues(java.lang.Class enumType)
                                       throws LocalServiceBindingException
Throws:
LocalServiceBindingException

getAllowedValueRange

protected StateVariableAllowedValueRange getAllowedValueRange()
                                                       throws LocalServiceBindingException
Throws:
LocalServiceBindingException


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.