/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public AllSomeType createAllSomeTypeFromString(EDataType eDataType, String initialValue) { AllSomeType result = AllSomeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * Returns the '<em><b>All Some Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param name the name. * @return the matching enumerator or <code>null</code>. * @generated */ public static AllSomeType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { AllSomeType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>All Some Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param literal the literal. * @return the matching enumerator or <code>null</code>. * @generated */ public static AllSomeType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { AllSomeType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Sets (as xml) the "releaseAction" attribute */ public void xsetReleaseAction(net.opengis.wfs.AllSomeType releaseAction) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.AllSomeType target = null; target = (net.opengis.wfs.AllSomeType)get_store().find_attribute_user(RELEASEACTION$10); if (target == null) { target = (net.opengis.wfs.AllSomeType)get_store().add_attribute_user(RELEASEACTION$10); } target.set(releaseAction); } }
/** * Sets (as xml) the "lockAction" attribute */ public void xsetLockAction(net.opengis.wfs.AllSomeType lockAction) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.AllSomeType target = null; target = (net.opengis.wfs.AllSomeType)get_store().find_attribute_user(LOCKACTION$4); if (target == null) { target = (net.opengis.wfs.AllSomeType)get_store().add_attribute_user(LOCKACTION$4); } target.set(lockAction); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { AttributeImpl att = (AttributeImpl) instance; String text = att.getText(); AllSomeType allSomeType = AllSomeType.get(text); return allSomeType; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AllSomeType createAllSomeTypeFromString(EDataType eDataType, String initialValue) { AllSomeType result = AllSomeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { AttributeImpl att = (AttributeImpl) instance; String text = att.getText(); AllSomeType allSomeType = AllSomeType.get(text); return allSomeType; } }