Ejemplo n.º 1
0
 /**
  * Retrieves the RunnerProperty object for the given XML tag name.
  *
  * @param propertyStr XML tag name
  * @return RunnerProperty, or <code>null</code> if none matches
  */
 public static RunnerProperty getRunnerProperty(final String propertyStr) {
   for (int i = 0; i < RUNNER_PROPERTY_STR.length; i++) {
     if (RUNNER_PROPERTY_STR[i].equals(propertyStr)) {
       return RunnerProperty.values()[i];
     }
   }
   return null;
 }
Ejemplo n.º 2
0
 /**
  * Retrieves the XML element tag name for the given RunnerProperty object.
  *
  * @param property RunnerProperty
  * @return XML tag name
  */
 public static String getXmlPropertyStr(final RunnerProperty property) {
   return RUNNER_PROPERTY_STR[property.ordinal()];
 }