org.jmythapi.protocol.response.impl
Class Setting
java.lang.Object
org.jmythapi.impl.AData<E>
org.jmythapi.protocol.response.impl.AMythResponse<ISetting.Props>
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
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 interface org.jmythapi.IPropertyAware |
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Setting
public Setting(IMythPacket packet)
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.