/** * 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 list of enumerations of the same kind than this enum. */ public IndeterminateValue[] family() { return values(); }
/** * Returns the IndeterminateValue that matches the given string, or returns a * new one if none match it. */ public static IndeterminateValue valueOf(String code) { if (code == null) { return null; } synchronized (VALUES) { Iterator iter = VALUES.iterator(); while (iter.hasNext()) { IndeterminateValue type = (IndeterminateValue) iter.next(); if (code.equalsIgnoreCase(type.name())) { return type; } } return new IndeterminateValue(code); } } }
/** Test of getIndeterminatePosition method, of class DefaultTemporalPosition. */ @Test public void testGetIndeterminatePosition() { IndeterminateValue result = temporalPosition1.getIndeterminatePosition(); assertFalse(temporalPosition2.getIndeterminatePosition().equals(result)); }
/** Test of setIndeterminatePosition method, of class DefaultTemporalPosition. */ @Test public void testSetIndeterminatePosition() { IndeterminateValue result = temporalPosition1.getIndeterminatePosition(); ((DefaultTemporalPosition) temporalPosition1) .setIndeterminatePosition(IndeterminateValue.BEFORE); assertFalse(temporalPosition1.getIndeterminatePosition().equals(result)); }
/** * * <!-- 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 list of enumerations of the same kind than this enum. */ public /*IndeterminateValue[]*/ CodeList[] family() { return values(); }
/** * 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); } }
/** * Returns the list of codes of the same kind than this code list element. * Invoking this method is equivalent to invoking {@link #values()}, except that * this method can be invoked on an instance of the parent {@code CodeList} class. * * @return all code {@linkplain #values() values} for this code list. */ @Override public IndeterminateValue[] family() { return values(); }