/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { IndeterminateValue timeValue = IndeterminateValue.valueOf((String) value); return timeValue; } }
/** * Returns the indeterminate value that matches the given string, or returns a new one if none * match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static IndeterminateValue valueOf(String code) { return valueOf(IndeterminateValue.class, code); } }
/** * Returns the indeterminate value that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static IndeterminateValue valueOf(String code) { return valueOf(IndeterminateValue.class, code); } }