anon.terms
Class TermsAndConditionsMixInfo
java.lang.Object
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:
...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TermsAndConditionsMixInfo
public TermsAndConditionsMixInfo(org.w3c.dom.Node infoRoot)
throws XMLParseException
- Throws:
XMLParseException
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()