protected Object getValue(FeatureMap featureMap, String name, boolean remove) { for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } return entry.getValue(); } } return null; }
protected Object getValue(FeatureMap featureMap, String name, boolean remove) { for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } return entry.getValue(); } } return null; }
protected Object getValue(FeatureMap featureMap, String name, boolean remove) { for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } return entry.getValue(); } } return null; }
private static void handleUnknownFeatures(EObject owner, FeatureMap featureMap, LoadHandler handler) { Iterator<FeatureMap.Entry> iterator = featureMap.iterator(); while (iterator.hasNext()) { FeatureMap.Entry entry = iterator.next(); EStructuralFeature feature = entry.getEStructuralFeature(); if (handler.handleUnknownFeature(owner, feature, entry.getValue())) { iterator.remove(); } } }
protected Collection<Object> getValues(FeatureMap featureMap, String name, boolean remove) { Collection<Object> values = new UniqueEList.FastCompare<Object>(); for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } values.add(entry.getValue()); } } return values; }
protected Collection<Object> getValues(FeatureMap featureMap, String name, boolean remove) { Collection<Object> values = new UniqueEList.FastCompare<Object>(); for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } values.add(entry.getValue()); } } return values; }
protected Collection<Object> getValues(FeatureMap featureMap, String name, boolean remove) { Collection<Object> values = new UniqueEList.FastCompare<Object>(); for (Iterator<FeatureMap.Entry> entries = featureMap.iterator(); entries .hasNext();) { FeatureMap.Entry entry = entries.next(); if (name.equals(entry.getEStructuralFeature().getName())) { if (remove) { entries.remove(); } values.add(entry.getValue()); } } return values; }
public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isContainerAdHoc(FlowElementsContainer container) { if (container instanceof Process) { Process process = (Process) container; Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (container instanceof AdHocSubProcess) { return true; } return false; } }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
public static boolean isAdHoc(FlowElement element) { if (element.eContainer() instanceof Process) { Process process = (Process) element.eContainer(); Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while(iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if(entry.getEStructuralFeature().getName().equals("adHoc")) { return Boolean.parseBoolean(((String)entry.getValue()).trim()); } } } else if (element instanceof AdHocSubProcess) { return true; } return false; }
private String getAnyAttributeValue(BaseElement el, String attrName) { if (el == null || attrName == null || attrName.isEmpty()) { return null; } if (el.getAnyAttribute() != null && el.getAnyAttribute().size() > 0) { Iterator<FeatureMap.Entry> iter = el.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if (attrName.equals(entry.getEStructuralFeature().getName())) { return entry.getValue().toString(); } } } return null; }
String idefId = null; String msgName = null; Iterator<FeatureMap.Entry> iter = element.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next();
private String getProcessPropertyValue(Process process, String propertyName) { Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if (propertyName.equals(entry.getEStructuralFeature().getName())) { return entry.getValue().toString(); } } return null; }
private String getProcessPropertyValue(Process process, String propertyName) { Iterator<FeatureMap.Entry> iter = process.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); if (propertyName.equals(entry.getEStructuralFeature().getName())) { return entry.getValue().toString(); } } return null; }
private void setDefaultGateway(FlowElement fe, List<SequenceFlow> sqList) { Iterator<FeatureMap.Entry> iter = fe.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next();
if (ar instanceof Group) { Group group = (Group) ar; Iterator<FeatureMap.Entry> iter = group.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next();
List<DataInput> dataInputs = ac.getIoSpecification().getDataInputs(); for (DataInput din : dataInputs) { Iterator<FeatureMap.Entry> iter = din.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next(); List<DataOutput> dataOutputs = ac.getIoSpecification().getDataOutputs(); for (DataOutput dout : dataOutputs) { Iterator<FeatureMap.Entry> iter = dout.getAnyAttribute().iterator(); while (iter.hasNext()) { FeatureMap.Entry entry = iter.next();