@Override public void confirmTID(JCoServerContext serverContext, String tid) { availableTIDs.getEntries().remove(tid); try { saveTIDs(); } catch (Exception e) { LOG.warn("Failed to save transaction IDs", e); } LOG.debug("Confirmed TID '" + tid + "'"); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public void removeEAnnotationDetail(EAnnotation eAnnotation, String key) { if (eAnnotation != null) { BasicEList deferredRemove = new BasicEList(); Iterator eAnnotationDetailsIterator = eAnnotation.getDetails().iterator(); while(eAnnotationDetailsIterator.hasNext()) { EStringToStringMapEntryImpl currentMapEntry = (EStringToStringMapEntryImpl)eAnnotationDetailsIterator.next(); if (currentMapEntry.getTypedKey().equalsIgnoreCase(key)) { deferredRemove.add(currentMapEntry); } } for (Iterator iter = deferredRemove.iterator(); iter.hasNext();) { eAnnotation.getDetails().remove(iter.next()); } } }
public void setMinLengthFacet(EDataType eDataType, int length) { if (length == -1) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("minLength"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("minLength", Integer.toString(length)); } getExtendedMetaData(eDataType).setMinLengthFacet(length); }
public void setFractionDigitsFacet(EDataType eDataType, int digits) { if (digits == -1) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("fractionDigits"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("fractionDigits", Integer.toString(digits)); } getExtendedMetaData(eDataType).setFractionDigitsFacet(digits); }
public void setTotalDigitsFacet(EDataType eDataType, int digits) { if (digits == -1) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("totalDigits"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("totalDigits", Integer.toString(digits)); } getExtendedMetaData(eDataType).setTotalDigitsFacet(digits); }
public void setLengthFacet(EDataType eDataType, int length) { if (length == -1) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("length"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("length", Integer.toString(length)); } getExtendedMetaData(eDataType).setLengthFacet(length); }
public void setMaxLengthFacet(EDataType eDataType, int length) { if (length == -1) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("maxLength"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("maxLength", Integer.toString(length)); } getExtendedMetaData(eDataType).setMaxLengthFacet(length); }
public void setFeatureKind(EStructuralFeature eStructuralFeature, int kind) { if (kind > 0 && kind < FEATURE_KINDS.length) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put("kind", FEATURE_KINDS[kind]); } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("kind"); } } getExtendedMetaData(eStructuralFeature).setFeatureKind(kind); }
public void setContentKind(EClass eClass, int kind) { if (kind > 0 && kind < CONTENT_KINDS.length) { EAnnotation eAnnotation = getAnnotation(eClass, true); eAnnotation.getDetails().put("kind", CONTENT_KINDS[kind]); } else { EAnnotation eAnnotation = getAnnotation(eClass, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("kind"); } } getExtendedMetaData(eClass).setContentKind(kind); }
public void setProcessingKind(EStructuralFeature eStructuralFeature, int kind) { if (kind > 0 && kind < PROCESSING_KINDS.length) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put("processing", PROCESSING_KINDS[kind]); } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("processing"); } } getExtendedMetaData(eStructuralFeature).setProcessingKind(kind); }
public void setMinInclusiveFacet(EDataType eDataType, String literal) { if (literal == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("minInclusive"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("minInclusive", literal); } getExtendedMetaData(eDataType).setMinInclusiveFacet(literal); }
public void setQualified(EPackage ePackage, boolean isQualified) { if (!isQualified) { EAnnotation eAnnotation = getAnnotation(ePackage, true); eAnnotation.getDetails().put("qualified", "false"); } else { EAnnotation eAnnotation = getAnnotation(ePackage, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("qualified"); } } getExtendedMetaData(ePackage).setQualified(isQualified); }
public void setWhiteSpaceFacet(EDataType eDataType, int whiteSpace) { if (whiteSpace == UNSPECIFIED_WHITE_SPACE) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("whiteSpace"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("whiteSpace", WHITE_SPACE_KINDS[whiteSpace]); } getExtendedMetaData(eDataType).setWhiteSpaceFacet(whiteSpace); }
public void setMinExclusiveFacet(EDataType eDataType, String literal) { if (literal == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("minExclusive"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("minExclusive", literal); } getExtendedMetaData(eDataType).setMinExclusiveFacet(literal); }
public void setMaxExclusiveFacet(EDataType eDataType, String literal) { if (literal == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("maxExclusive"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("maxExclusive", literal); } getExtendedMetaData(eDataType).setMaxExclusiveFacet(literal); }
public void setMaxInclusiveFacet(EDataType eDataType, String literal) { if (literal == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("maxInclusive"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("maxInclusive", literal); } getExtendedMetaData(eDataType).setMaxInclusiveFacet(literal); }
public void setGroup(EStructuralFeature eStructuralFeature, EStructuralFeature group) { if (group == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("group"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("group", getQualifiedName(getNamespace(eStructuralFeature.getEContainingClass().getEPackage()), group)); } getExtendedMetaData(eStructuralFeature).setGroup(group); }
public void setAffiliation(EStructuralFeature eStructuralFeature, EStructuralFeature affiliation) { if (affiliation == null) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("affiliation"); } } else { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, true); eAnnotation.getDetails().put ("affiliation", getQualifiedName(getNamespace(eStructuralFeature.getEContainingClass().getEPackage()), affiliation)); } getExtendedMetaData(eStructuralFeature).setAffiliation(affiliation); }
public void setItemType(EDataType eDataType, EDataType itemType) { if (itemType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("itemType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("itemType", getQualifiedName(getNamespace(eDataType), itemType)); } getExtendedMetaData(eDataType).setItemType(itemType); }
public void setBaseType(EDataType eDataType, EDataType baseType) { if (baseType == null) { EAnnotation eAnnotation = getAnnotation(eDataType, false); if (eAnnotation != null) { eAnnotation.getDetails().remove("baseType"); } } else { EAnnotation eAnnotation = getAnnotation(eDataType, true); eAnnotation.getDetails().put("baseType", getQualifiedName(getNamespace(eDataType), baseType)); } getExtendedMetaData(eDataType).setBaseType(baseType); }