/** * 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; }
/** * 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()]; }