net.neurowork.mobile.android.fw.parse
Class ParseUtils

java.lang.Object
  extended by net.neurowork.mobile.android.fw.parse.ParseUtils

public class ParseUtils
extends java.lang.Object

Utility xml parsing of all of the application.

Since:
1.0
Author:
Jorge E. Villaverde, Jonatan Alcocer Luna

Constructor Summary
ParseUtils()
           
 
Method Summary
static CoverActivityGenerator parseAppCoverData(android.content.Context context, java.util.Locale locale, java.lang.String xmlFileName)
          This method is used to make the ride home file "coverFileName" passed in the parameter xmlFileName.
static ApplicationData parseApplicationData(android.content.Context context, java.util.Locale locale, java.lang.String xmlFileName)
          This method is used to make the ride app.xml file, passed in the parameter xmlFileName.
static ApplicationData parseApplicationData(android.content.Context context, java.lang.String str)
          This method is used to make the ride app.xml file, passed in the parameter xmlFileName.
static java.util.Map<java.lang.String,FormatStyle> parseFormatData(android.content.Context context, java.lang.String xmlFileName)
          This method is used to make the ride home file "formats.xml" passed in the parameter xmlFileName.
static AppLevelData parseLevelData(android.content.Context context, java.util.Locale locale, java.lang.String xmlFileName, ActivityType activityType)
          This method is used to make the ride home file "LEVEL.xml" passed in the parameter xmlFileName.
static MenuActions parseMenuData(android.content.Context context, java.lang.String xmlFileName)
          This method is used to make the ride home file "top_menu|bottom_menu| context_menu|side_menu" passed in the parameter xmlFileName.
static java.util.Map<java.lang.String,LevelTypeStyle> parseStylesData(android.content.Context context, java.lang.String xmlFileName)
          This method is used to make the ride home file "styles.xml" passed in the parameter xmlFileName.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseUtils

public ParseUtils()
Method Detail

parseApplicationData

public static ApplicationData parseApplicationData(android.content.Context context,
                                                   java.util.Locale locale,
                                                   java.lang.String xmlFileName)
This method is used to make the ride app.xml file, passed in the parameter xmlFileName.

Parameters:
context -
locale -
xmlFileName -
Returns:
ApplicationData

parseApplicationData

public static ApplicationData parseApplicationData(android.content.Context context,
                                                   java.lang.String str)
This method is used to make the ride app.xml file, passed in the parameter xmlFileName.

Parameters:
context -
str -
Returns:

parseAppCoverData

public static CoverActivityGenerator parseAppCoverData(android.content.Context context,
                                                       java.util.Locale locale,
                                                       java.lang.String xmlFileName)
This method is used to make the ride home file "coverFileName" passed in the parameter xmlFileName.

Parameters:
context -
locale -
xmlFileName -
Returns:
CoverActivityGenerator

parseMenuData

public static MenuActions parseMenuData(android.content.Context context,
                                        java.lang.String xmlFileName)
This method is used to make the ride home file "top_menu|bottom_menu| context_menu|side_menu" passed in the parameter xmlFileName.

Parameters:
context -
xmlFileName -
Returns:

parseStylesData

public static java.util.Map<java.lang.String,LevelTypeStyle> parseStylesData(android.content.Context context,
                                                                             java.lang.String xmlFileName)
This method is used to make the ride home file "styles.xml" passed in the parameter xmlFileName.

Parameters:
context -
xmlFileName -
Returns:

parseFormatData

public static java.util.Map<java.lang.String,FormatStyle> parseFormatData(android.content.Context context,
                                                                          java.lang.String xmlFileName)
This method is used to make the ride home file "formats.xml" passed in the parameter xmlFileName.

Parameters:
context -
xmlFileName -
Returns:

parseLevelData

public static AppLevelData parseLevelData(android.content.Context context,
                                          java.util.Locale locale,
                                          java.lang.String xmlFileName,
                                          ActivityType activityType)
This method is used to make the ride home file "LEVEL.xml" passed in the parameter xmlFileName.

Parameters:
context -
locale -
xmlFileName -
activityType -
Returns: