/** * Validates the ItemType constraint of '<em>Name List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateNameList_ItemType(List<?> nameList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = nameList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.NAME.isInstance(item)) { result &= xmlTypeValidator.validateName((String)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.NAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Position Type</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validatePositionType_ItemType(List positionType, DiagnosticChain diagnostics, Map context) { boolean result = true; for (Iterator i = positionType.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.DOUBLE.isInstance(item)) { result &= xmlTypeValidator.validateDouble(((Double)item).doubleValue(), diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.DOUBLE, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Double List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateDoubleList_ItemType(List doubleList, DiagnosticChain diagnostics, Map context) { boolean result = true; for (Iterator i = doubleList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.DOUBLE.isInstance(item)) { result &= xmlTypeValidator.validateDouble(((Double)item).doubleValue(), diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.DOUBLE, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Type Names List Type</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateTypeNamesListType_ItemType(List<?> typeNamesListType, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = typeNamesListType.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (Fes20Package.Literals.TYPE_NAMES_TYPE.isInstance(item)) { result &= validateTypeNamesType(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(Fes20Package.Literals.TYPE_NAMES_TYPE, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Integer List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateIntegerList_ItemType(List<?> integerList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = integerList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.INTEGER.isInstance(item)) { result &= xmlTypeValidator.validateInteger((BigInteger)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.INTEGER, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>QName List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateQNameList_ItemType(List<?> qNameList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = qNameList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.QNAME.isInstance(item)) { result &= xmlTypeValidator.validateQName(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.QNAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Position Type</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validatePositionType_ItemType(List<?> positionType, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = positionType.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.DOUBLE.isInstance(item)) { result &= xmlType_1Validator.validateDouble((Double)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.DOUBLE, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Return Feature Types List Type</em>'. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean validateReturnFeatureTypesListType_ItemType(List<?> returnFeatureTypesListType, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = returnFeatureTypesListType.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.QNAME.isInstance(item)) { result &= xmlTypeValidator.validateQName((QName)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.QNAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Double List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateDoubleList_ItemType(List<?> doubleList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = doubleList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.DOUBLE.isInstance(item)) { result &= xmlTypeValidator.validateDouble((Double)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.DOUBLE, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>NC Name List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateNCNameList_ItemType(List<?> ncNameList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = ncNameList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.NC_NAME.isInstance(item)) { result &= xmlTypeValidator.validateNCName((String)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.NC_NAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Name List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateNameList_ItemType(List nameList, DiagnosticChain diagnostics, Map context) { boolean result = true; for (Iterator i = nameList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.NAME.isInstance(item)) { result &= xmlTypeValidator.validateName((String)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.NAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Aliases Type</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateAliasesType_ItemType(List<?> aliasesType, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = aliasesType.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.NC_NAME.isInstance(item)) { result &= xmlTypeValidator.validateNCName((String)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.NC_NAME, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Boolean List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateBooleanList_ItemType(List<?> booleanList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = booleanList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.BOOLEAN.isInstance(item)) { result &= xmlTypeValidator.validateBoolean((Boolean)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.BOOLEAN, item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Integer List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateIntegerList_ItemType(List integerList, DiagnosticChain diagnostics, Map context) { boolean result = true; for (Iterator i = integerList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (XMLTypePackage.Literals.INTEGER.isInstance(item)) { result &= xmlTypeValidator.validateInteger((BigInteger)item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(XMLTypePackage.Literals.INTEGER, item, diagnostics, context); } } return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String convertTimeDurationTypeToString(EDataType eDataType, Object instanceValue) { if (instanceValue == null) return null; if (XMLTypePackage.Literals.DURATION.isInstance(instanceValue)) { try { String value = XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.DURATION, instanceValue); if (value != null) return value; } catch (Exception e) { // Keep trying other member types until all have failed. } } if (XMLTypePackage.Literals.DECIMAL.isInstance(instanceValue)) { try { String value = XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.DECIMAL, instanceValue); if (value != null) return value; } catch (Exception e) { // Keep trying other member types until all have failed. } } throw new IllegalArgumentException("Invalid value: '"+instanceValue+"' for datatype :"+eDataType.getName()); }
/** * Validates the ItemType constraint of '<em>Boolean Or Null List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateBooleanOrNullList_ItemType(List<?> booleanOrNullList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = booleanOrNullList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (Gml311Package.eINSTANCE.getBooleanOrNull().isInstance(item)) { result &= validateBooleanOrNull(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(Gml311Package.eINSTANCE.getBooleanOrNull(), item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Integer Or Null List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateIntegerOrNullList_ItemType(List<?> integerOrNullList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = integerOrNullList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (Gml311Package.eINSTANCE.getIntegerOrNull().isInstance(item)) { result &= validateIntegerOrNull(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(Gml311Package.eINSTANCE.getIntegerOrNull(), item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Double Or Null List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateDoubleOrNullList_ItemType(List<?> doubleOrNullList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = doubleOrNullList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (Gml311Package.eINSTANCE.getDoubleOrNull().isInstance(item)) { result &= validateDoubleOrNull(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(Gml311Package.eINSTANCE.getDoubleOrNull(), item, diagnostics, context); } } return result; }
/** * Validates the ItemType constraint of '<em>Name Or Null List</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateNameOrNullList_ItemType(List<?> nameOrNullList, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = true; for (Iterator<?> i = nameOrNullList.iterator(); i.hasNext() && (result || diagnostics != null); ) { Object item = i.next(); if (Gml311Package.eINSTANCE.getNameOrNull().isInstance(item)) { result &= validateNameOrNull(item, diagnostics, context); } else { result = false; reportDataValueTypeViolation(Gml311Package.eINSTANCE.getNameOrNull(), item, diagnostics, context); } } return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String convertComparisonOperatorNameTypeToString(EDataType eDataType, Object instanceValue) { if (instanceValue == null) return null; if (Fes20Package.Literals.COMPARISON_OPERATOR_NAME_TYPE_MEMBER0.isInstance(instanceValue)) { try { String value = convertComparisonOperatorNameTypeMember0ToString(Fes20Package.Literals.COMPARISON_OPERATOR_NAME_TYPE_MEMBER0, instanceValue); if (value != null) return value; } catch (Exception e) { // Keep trying other member types until all have failed. } } if (Fes20Package.Literals.COMPARISON_OPERATOR_NAME_TYPE_MEMBER1.isInstance(instanceValue)) { try { String value = convertComparisonOperatorNameTypeMember1ToString(Fes20Package.Literals.COMPARISON_OPERATOR_NAME_TYPE_MEMBER1, instanceValue); if (value != null) return value; } catch (Exception e) { // Keep trying other member types until all have failed. } } throw new IllegalArgumentException("Invalid value: '"+instanceValue+"' for datatype :"+eDataType.getName()); }