anon.terms
Class TermsAndConditionsMixInfo

java.lang.Object
  extended by anon.terms.TermsAndConditionsMixInfo

public class TermsAndConditionsMixInfo
extends java.lang.Object

Holds the Terms and Conditions resource infos that are part of the Cascade key info. It provides when the Terms And Conditions became valid, which translations are available, which templates are used and also which is the default language. The JonDo uses these infos to generate the T&C resource request. This info class is stored in the context of the corresponding MixInfo. a sample XML structure: ...


Field Summary
private  java.lang.String date
           
private  java.lang.String defaultLang
           
private  java.lang.String id
           
private  java.util.Hashtable templates
           
static java.lang.String TNC_MIX_INFO
           
static java.lang.String TNC_MIX_INFO_DATE
           
static java.lang.String TNC_MIX_INFO_DEFAULT_LANG
           
static java.lang.String TNC_MIX_INFO_ID
           
static java.lang.String TNC_MIX_INFO_LOCALE
           
static java.lang.String TNC_MIX_INFO_ROOT
           
static java.lang.String TNC_MIX_INFO_TEMPLATE_REFID
           
 
Constructor Summary
TermsAndConditionsMixInfo(org.w3c.dom.Node infoRoot)
           
 
Method Summary
 java.lang.String getDate()
           
 java.lang.String getDefaultLanguage()
           
 java.lang.String getDefaultTemplateRefId()
           
 java.lang.String getId()
           
 java.util.Enumeration getLanguages()
           
 java.lang.String getTemplateRefId(java.util.Locale locale)
           
 java.lang.String getTemplateRefId(java.lang.String langCode)
           
 boolean hasTranslation(java.util.Locale locale)
           
 boolean hasTranslation(java.lang.String langCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TNC_MIX_INFO_ROOT

public static final java.lang.String TNC_MIX_INFO_ROOT
See Also:
Constant Field Values

TNC_MIX_INFO

public static final java.lang.String TNC_MIX_INFO
See Also:
Constant Field Values

TNC_MIX_INFO_ID

public static final java.lang.String TNC_MIX_INFO_ID
See Also:
Constant Field Values

TNC_MIX_INFO_DATE

public static final java.lang.String TNC_MIX_INFO_DATE
See Also:
Constant Field Values

TNC_MIX_INFO_LOCALE

public static final java.lang.String TNC_MIX_INFO_LOCALE
See Also:
Constant Field Values

TNC_MIX_INFO_DEFAULT_LANG

public static final java.lang.String TNC_MIX_INFO_DEFAULT_LANG
See Also:
Constant Field Values

TNC_MIX_INFO_TEMPLATE_REFID

public static final java.lang.String TNC_MIX_INFO_TEMPLATE_REFID
See Also:
Constant Field Values

id

private java.lang.String id

date

private java.lang.String date

defaultLang

private java.lang.String defaultLang

templates

private java.util.Hashtable templates
Constructor Detail

TermsAndConditionsMixInfo

public TermsAndConditionsMixInfo(org.w3c.dom.Node infoRoot)
                          throws XMLParseException
Throws:
XMLParseException
Method Detail

getId

public java.lang.String getId()

getDate

public java.lang.String getDate()

getTemplateRefId

public java.lang.String getTemplateRefId(java.util.Locale locale)

getTemplateRefId

public java.lang.String getTemplateRefId(java.lang.String langCode)

getDefaultTemplateRefId

public java.lang.String getDefaultTemplateRefId()

hasTranslation

public boolean hasTranslation(java.lang.String langCode)

hasTranslation

public boolean hasTranslation(java.util.Locale locale)

getDefaultLanguage

public java.lang.String getDefaultLanguage()

getLanguages

public java.util.Enumeration getLanguages()