org.jmythapi.database.impl
Class ChannelInfo

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.database.impl.ADatabaseRow<IRecorderChannelInfo.Props>
          extended by org.jmythapi.database.impl.ChannelInfo
All Implemented Interfaces:
Cloneable, IBasicChannelInfo, IPropertyAware<IRecorderChannelInfo.Props>, IRecorderChannelInfo, IVersionable

public class ChannelInfo
extends ADatabaseRow<IRecorderChannelInfo.Props>
implements IBasicChannelInfo, IRecorderChannelInfo


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.IRecorderChannelInfo
IRecorderChannelInfo.Props
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
ChannelInfo(ProtocolVersion protoVersion, int dbVersion, List<String> data)
           
 
Method Summary
 Integer getChannelID()
          Gets the MythTV internal channel ID.
 String getChannelName()
          Gets the channel name.
 String getChannelNumber()
          Gets the user defined channel number.
 String getChannelSign()
          Gets the station abbreviation.
 Integer getSourceID()
          Gets the source id.
 String getXmlTvID()
          Gets the XML-TV id.
 
Methods inherited from class org.jmythapi.database.impl.ADatabaseRow
clone, decodeProperty, encodeProperty, equals, getDatabaseVersion, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
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

ChannelInfo

public ChannelInfo(ProtocolVersion protoVersion,
                   int dbVersion,
                   List<String> data)
Method Detail

getChannelID

public Integer getChannelID()
Description copied from interface: IBasicChannelInfo
Gets the MythTV internal channel ID.

Specified by:
getChannelID in interface IBasicChannelInfo
Specified by:
getChannelID in interface IRecorderChannelInfo
Returns:
the ID of the channel, e.g. 11123
See Also:
IRecorderChannelInfo.Props.CHANNEL_ID, IBasicChannelInfo.getChannelID()

getChannelNumber

public String getChannelNumber()
Description copied from interface: IBasicChannelInfo
Gets the user defined channel number.

Specified by:
getChannelNumber in interface IBasicChannelInfo
Specified by:
getChannelNumber in interface IRecorderChannelInfo
Returns:
the user defined number. This could contain '-', '_' or '.'
See Also:
IRecorderChannelInfo.Props.CHANNEL_NUMBER

getChannelSign

public String getChannelSign()
Description copied from interface: IBasicChannelInfo
Gets the station abbreviation.

Specified by:
getChannelSign in interface IBasicChannelInfo
Specified by:
getChannelSign in interface IRecorderChannelInfo
Returns:
the channel abbreviation, e.g. PULS 4
See Also:
IRecorderChannelInfo.Props.CHANNEL_SIGN, IBasicChannelInfo.getChannelSign()

getChannelName

public String getChannelName()
Description copied from interface: IRecorderChannelInfo
Gets the channel name.

Specified by:
getChannelName in interface IRecorderChannelInfo
Returns:
the channel name
See Also:
IRecorderChannelInfo.Props.CHANNEL_NAME

getSourceID

public Integer getSourceID()
Description copied from interface: IRecorderChannelInfo
Gets the source id.

Specified by:
getSourceID in interface IRecorderChannelInfo
Returns:
the source id
See Also:
IRecorderChannelInfo.Props.SOURCE_ID

getXmlTvID

public String getXmlTvID()
Description copied from interface: IRecorderChannelInfo
Gets the XML-TV id.

Specified by:
getXmlTvID in interface IRecorderChannelInfo
Returns:
the xml tv id
See Also:
IRecorderChannelInfo.Props.XMLTV_ID


Copyright © 2008-2013. All Rights Reserved.