protected boolean basicIsQualified(EPackage ePackage) { EAnnotation eAnnotation = getAnnotation(ePackage, false); return eAnnotation == null || !"false".equals(eAnnotation.getDetails().get("qualified")); }
protected int basicGetFractionDigitsFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { String fractionDigitsLiteral = eAnnotation.getDetails().get("fractionDigits"); if (fractionDigitsLiteral != null) { return Integer.parseInt(fractionDigitsLiteral); } } return -1; }
protected int basicGetLengthFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { String lengthLiteral = eAnnotation.getDetails().get("length"); if (lengthLiteral != null) { return Integer.parseInt(lengthLiteral); } } return -1; }
protected String basicGetMinExclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("minExclusive"); }
protected String basicGetMinInclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("minInclusive"); }
protected String basicGetMinExclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("minExclusive"); }
protected String basicGetMaxInclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("maxInclusive"); }
protected String basicGetMaxExclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("maxExclusive"); }
protected String basicGetMinInclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("minInclusive"); }
protected String basicGetMaxExclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("maxExclusive"); }
protected String basicGetMaxInclusiveFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); return eAnnotation == null ? null : (String)eAnnotation.getDetails().get("maxInclusive"); }
protected int basicGetFractionDigitsFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { String fractionDigitsLiteral = eAnnotation.getDetails().get("fractionDigits"); if (fractionDigitsLiteral != null) { return parseInt(fractionDigitsLiteral); } } return -1; }
protected int basicGetMinLengthFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { String minLengthLiteral = eAnnotation.getDetails().get("minLength"); if (minLengthLiteral != null) { return parseInt(minLengthLiteral); } } return -1; }
protected String basicGetName(EStructuralFeature eStructuralFeature) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { String result = eAnnotation.getDetails().get("name"); if (result != null) { return result; } } return eStructuralFeature.getName(); }
protected int basicGetLengthFacet(EDataType eDataType) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { String lengthLiteral = eAnnotation.getDetails().get("length"); if (lengthLiteral != null) { return parseInt(lengthLiteral); } } return -1; }
protected String basicGetName(EStructuralFeature eStructuralFeature) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { String result = eAnnotation.getDetails().get("name"); if (result != null) { return result; } } return eStructuralFeature.getName(); }
public void setName(EStructuralFeature eStructuralFeature, String name) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put("name", name); getExtendedMetaData(eStructuralFeature).setName(name); }
public void setName(EStructuralFeature eStructuralFeature, String name) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put("name", name); getExtendedMetaData(eStructuralFeature).setName(name); }
public void setName(EClassifier eClassifier, String name) { EAnnotation eAnnotation = getAnnotation(eClassifier, true); eAnnotation.getDetails().put("name", name); getExtendedMetaData(eClassifier).setName(name); EPackage ePackage = eClassifier.getEPackage(); if (ePackage != null) { getExtendedMetaData(ePackage).rename(eClassifier, name); } }
public void setName(EClassifier eClassifier, String name) { EAnnotation eAnnotation = getAnnotation(eClassifier, true); eAnnotation.getDetails().put("name", name); getExtendedMetaData(eClassifier).setName(name); EPackage ePackage = eClassifier.getEPackage(); if (ePackage != null) { getExtendedMetaData(ePackage).rename(eClassifier, name); } }