*/
public void setDimension(Element dataType, InstanceSpecification instanceSpecification) {
if (dataType.getStereotypeApplications() != null) {
EObject stereotype = dataType.getStereotypeApplications().get(0);
if (stereotype instanceof ValueType) {
ValueType valueType = (ValueType)stereotype;
if (instanceSpecification.getStereotypeApplications() != null) {
stereotype = instanceSpecification.getStereotypeApplications().get(0);
if (stereotype instanceof Dimension) {
Dimension dimension = (Dimension)stereotype;
valueType.setDimension(dimension);
}
}
}
}
}