com.gcapmedia.dab.epg
Class DescriptiveText

java.lang.Object
  extended by com.gcapmedia.dab.epg.DescriptiveText
Direct Known Subclasses:
LongDescription, Name, ShortDescription

public abstract class DescriptiveText
extends java.lang.Object

Author:
ben.poor

Constructor Summary
DescriptiveText(java.lang.String text, int maxLength, java.util.Locale locale)
          Create a new descriptive text
 
Method Summary
 java.lang.String getLanguage()
           
 int getLength()
           
 int getMaximumLength()
           
 java.lang.String getText()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescriptiveText

public DescriptiveText(java.lang.String text,
                       int maxLength,
                       java.util.Locale locale)
Create a new descriptive text

Parameters:
text - Descriptive text
maxLength - Maximum length
locale - Text locale, defining the language of the description
Method Detail

getText

public java.lang.String getText()
Returns:
Returns the descriptive text

getMaximumLength

public int getMaximumLength()
Returns:
Returns the maximum length of the descriptive text

getLanguage

public java.lang.String getLanguage()
Returns:
Returns the language of the text as ISO 639

getLength

public int getLength()
Returns:
Returns the text length

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.