/* * (non-Javadoc) * * @see com.intel.stl.api.management.WrapperNode#valueOf(java.lang.String) */ @Override protected StaticRate valueOf(String str) { if (str.equalsIgnoreCase(XMLConstants.UNLIMITED)) { return StaticRate.RATE_DONTCARE; } else { return StaticRate.getStaticRate(str); } }
/* * (non-Javadoc) * * @see * com.intel.stl.api.management.WrapperNode#valueString(java.lang.Object) */ @Override protected String valueString(StaticRate value) { if (value == StaticRate.RATE_DONTCARE) { return XMLConstants.UNLIMITED; } else { return value.getName(); } }
public static MaxRate[] values() { StaticRate[] rates = StaticRate.values(); MaxRate[] res = new MaxRate[rates.length]; for (int i = 0; i < res.length; i++) { res[i] = new MaxRate(rates[i]); } return res; }