/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { assert value instanceof String; String literal = (String) value; ResultTypeType resultTypeType = ResultTypeType.get(literal); return resultTypeType; } }
/** * Returns the '<em><b>Result Type 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 ResultTypeType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultTypeType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Result Type 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 ResultTypeType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultTypeType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Sets (as xml) the "resultType" attribute */ public void xsetResultType(net.opengis.wfs.ResultTypeType resultType) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.ResultTypeType target = null; target = (net.opengis.wfs.ResultTypeType)get_store().find_attribute_user(RESULTTYPE$4); if (target == null) { target = (net.opengis.wfs.ResultTypeType)get_store().add_attribute_user(RESULTTYPE$4); } target.set(resultType); } }
/** * Sets (as xml) the "resultType" attribute */ public void xsetResultType(net.opengis.wfs.ResultTypeType resultType) { synchronized (monitor()) { check_orphaned(); net.opengis.wfs.ResultTypeType target = null; target = (net.opengis.wfs.ResultTypeType)get_store().find_attribute_user(RESULTTYPE$2); if (target == null) { target = (net.opengis.wfs.ResultTypeType)get_store().add_attribute_user(RESULTTYPE$2); } target.set(resultType); } }
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public ResultTypeType createResultTypeTypeFromString(EDataType eDataType, String initialValue) { ResultTypeType result = ResultTypeType.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 { assert value instanceof String; String literal = (String) value; ResultTypeType resultTypeType = ResultTypeType.get(literal); return resultTypeType; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ResultTypeType createResultTypeTypeFromString(EDataType eDataType, String initialValue) { ResultTypeType result = ResultTypeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }