org.hops.og.util
Class AttributesTaxonomy

java.lang.Object
  extended by org.hops.og.util.AttributesTaxonomy
All Implemented Interfaces:
java.io.Serializable

public class AttributesTaxonomy
extends java.lang.Object
implements java.io.Serializable

AttributesTaxonomy.java CLASS AttributesTaxonomy is used by the OG for get information about the attributes The information stored is: - correspondency name between LG and DM

Version:
3.0
Author:
Meritxell Gonzalez
See Also:
Serialized Form

Constructor Summary
AttributesTaxonomy(java.lang.String attr_file)
          Constructor.
 
Method Summary
 java.util.ArrayList getAttrValuesByLang(java.lang.String attr_name, java.util.ArrayList attr_values, java.lang.String Lang, java.lang.String channelType, HopsLang hl)
          Gets the translation of Dates, missing and error messages.
 java.lang.String getHopsAttribute(java.lang.String planname, java.lang.String gap)
          search the hops attribute correspondence between the language generator and the Hops platform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesTaxonomy

public AttributesTaxonomy(java.lang.String attr_file)
Constructor.

Parameters:
attr_file - the file containing the attribute names translation betwee OG and LG
Method Detail

getAttrValuesByLang

public java.util.ArrayList getAttrValuesByLang(java.lang.String attr_name,
                                               java.util.ArrayList attr_values,
                                               java.lang.String Lang,
                                               java.lang.String channelType,
                                               HopsLang hl)
Gets the translation of Dates, missing and error messages.

Parameters:
attr_name - name of the attribute
attr_values - values of the attribute to translate
Lang - the language to be translated
channelType - the channel of the user communication
Returns:
The attr_values translated

getHopsAttribute

public java.lang.String getHopsAttribute(java.lang.String planname,
                                         java.lang.String gap)
search the hops attribute correspondence between the language generator and the Hops platform

Parameters:
planname - the planidentification: serviceidentification, ca, ltc, afc
gap - the attribute missing
Returns:
the name of the hops attribute