private void setIfcCartesianPoint(IdEObject idEObject, float scale) { IfcCartesianPoint ifcCartesianPoint = (IfcCartesianPoint) idEObject; EList<Double> coordinates = ifcCartesianPoint.getCoordinates(); for (int index = 0; index < coordinates.size(); index++) { coordinates.set(index, coordinates.get(index) * scale); } }
private void setIfcVirtualGridIntersection(IdEObject idEObject, float scale) { IfcVirtualGridIntersection ifcVirtualGridIntersection = (IfcVirtualGridIntersection) idEObject; EList<Double> offsetDistances = ifcVirtualGridIntersection.getOffsetDistances(); for (int i = 0; i < offsetDistances.size(); i++) { offsetDistances.set(i, offsetDistances.get(i) * scale); } }
private void setIfcStructuralSurfaceMemberVarying(IdEObject idEObject, float scale) { setIfcStructuralSurfaceMember(idEObject, scale); IfcStructuralSurfaceMemberVarying ifcStructuralSurfaceMemberVarying = (IfcStructuralSurfaceMemberVarying) idEObject; EList<Double> subsequentThickness = ifcStructuralSurfaceMemberVarying.getSubsequentThickness(); for (int index = 0; index < subsequentThickness.size(); index++) { subsequentThickness.set(index, subsequentThickness.get(index) * scale); } }
/** * Delegates to {@link #delegateEList}. */ public Map.Entry<K, V> set(int index, Map.Entry<K, V> object) { return delegateEList.set(index, (Entry<K, V>)object); }
@Override public E set(int index, E element) { synchronized (mutex) { return list.set(index, element); } }
public S set(int index, S element) { return delegate.set(index, element); }
@Override public S set(int index, S element) { return getRows().set(index, element); }
@Override public Object caseOpaqueExpression(OpaqueExpression opaqueExpression) { EList<String> bodies = opaqueExpression.getBodies(); if (bodies.isEmpty()) { bodies.add(newValue); } else { bodies.set(0, newValue); } return opaqueExpression; }
@Override protected void didSet(int index, XmlAttributeMapping newObject, XmlAttributeMapping oldObject) { persistentAttributes().set(index, newObject.getPersistentAttribute()); } }
@Override protected void didSet(int index, XmlTypeMapping newObject, XmlTypeMapping oldObject) { getPersistentTypes().set(index, newObject.getPersistentType()); } }
public Document set(int index, Document element) { checkDocument(element); return getDocument().set(index, element); }
/** * Sets either a single element of the specified feature or, if the index is -1, the value of the feature. */ public boolean set(EStructuralFeature feature, int index, Object object) { if (index == -1) return setValue(feature, object); EList<Object> list = getList(feature); if (list != null) { list.set(index, object); return true; } return false; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ private void coerceValue(int index, final EClassifier type) { final Object value = getValues().get(index); final Object coerced = coerce(value, (EDataType)type); getValues().set(index, coerced); }
public Object set(InternalEObject eObject, EStructuralFeature feature, int index, Object value) { int dynamicFeatureID = eDynamicFeatureID(eObject, feature); if (index != NO_INDEX) { return getValueAsList(eObject, dynamicFeatureID).set(index, value); } return setValue(eObject, dynamicFeatureID, value); }
public Object set(InternalEObject eObject, EStructuralFeature feature, int index, Object value) { int transientIndex = getTransientFeatureIndex(eObject, feature); if (index != NO_INDEX) { return getValueAsList(eObject, transientIndex).set(index, value); } return setValue(eObject, transientIndex, value); }
public void resolve(InternalCDOObject target) { if (reference.isMany()) { @SuppressWarnings("unchecked") EList<EObject> list = (EList<EObject>)source.eGet(reference); list.set(index, target); } else { source.eSet(reference, target); } } }
/** * Set the forward role. Implemented by ensuring that the passed role is the first role * which is the "tiebreaker" in case of unclear relationships, such as 1:1. */ public void setFoward(EJBRelationshipRole aRole) { EList roles = getRelationshipRoles(); int currentIndex = roles.indexOf(aRole); if (currentIndex != 0) { if (currentIndex > -1) roles.move(0, aRole); else roles.set(0, aRole); } } /**
@Override public Object caseXSDAttributeGroupDefinition(XSDAttributeGroupDefinition xsdAttributeGroupDefinition) { XSDAttributeGroupDefinition redefinedAttributeGroupDefinition = resolveAttributeGroupDefinition(xsdAttributeGroupDefinition.getName()); for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine()) { int index = schemaToRedefine.getAttributeGroupDefinitions().indexOf(redefinedAttributeGroupDefinition); if (index != -1) { schemaToRedefine.getAttributeGroupDefinitions().set(index, xsdAttributeGroupDefinition); schemaToRedefine.redefinitionMap.put(xsdAttributeGroupDefinition, redefinedAttributeGroupDefinition); } } return this; } @Override
@Override public Object caseXSDModelGroupDefinition(XSDModelGroupDefinition xsdModelGroupDefinition) { XSDModelGroupDefinition redefinedModelGroupDefinition = resolveModelGroupDefinition(xsdModelGroupDefinition.getName()); for (XSDSchemaImpl schemaToRedefine : getSchemasToRedefine()) { int index = schemaToRedefine.getModelGroupDefinitions().indexOf(redefinedModelGroupDefinition); if (index != -1) { schemaToRedefine.getModelGroupDefinitions().set(index, xsdModelGroupDefinition); schemaToRedefine.redefinitionMap.put(xsdModelGroupDefinition, redefinedModelGroupDefinition); } } return this; } };