org.jmythapi.protocol.response.impl
Class Setting

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<ISetting.Props>
          extended by org.jmythapi.protocol.response.impl.Setting
All Implemented Interfaces:
Cloneable, IPropertyAware<ISetting.Props>, ISetting, IVersionable, ISendable, IMythResponse<ISetting.Props>

public class Setting
extends AMythResponse<ISetting.Props>
implements ISetting


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.ISetting
ISetting.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
Setting(IMythPacket packet)
           
 
Method Summary
 String getData()
          Gets the settings value
<T> T
getData(Class<T> dataType)
          Gets the settings value and converts it into the given data type.
 String getHostname()
          Gets the backends hostname this settings belongs to.
 String getName()
          The name of the setting.
 void setHostname(String hostname)
           
 void setName(String value)
           
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 
Methods inherited from interface org.jmythapi.IPropertyAware
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 

Constructor Detail

Setting

public Setting(IMythPacket packet)
Method Detail

getData

public String getData()
Description copied from interface: ISetting
Gets the settings value

Specified by:
getData in interface ISetting
Returns:
The value of the setting.
See Also:
ISetting.Props.DATA

getData

public <T> T getData(Class<T> dataType)
Description copied from interface: ISetting
Gets the settings value and converts it into the given data type.

Specified by:
getData in interface ISetting
Type Parameters:
T - the data type
Parameters:
dataType - the data type
Returns:
the settings value

getHostname

public String getHostname()
Description copied from interface: ISetting
Gets the backends hostname this settings belongs to.

Specified by:
getHostname in interface ISetting
Returns:
the name of the host or null

setHostname

public void setHostname(String hostname)

getName

public String getName()
Description copied from interface: ISetting
The name of the setting.

Specified by:
getName in interface ISetting
Returns:
the settings name

setName

public void setName(String value)


Copyright © 2008-2013. All Rights Reserved.