Package org.eclipse.papyrus.sysml.blocks

Examples of org.eclipse.papyrus.sysml.blocks.ValueType


   */
  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);
          }
        }
      }
    }
  }
View Full Code Here


   */
  public void setUnit(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 Unit) {
            Unit unit = (Unit)stereotype;
            valueType.setUnit(unit);
          }
        }
      }
    }
  }
View Full Code Here

        result = defaultCase(theEObject);
      return result;
    }
    case BlocksPackage.VALUE_TYPE:
    {
      ValueType valueType = (ValueType)theEObject;
      T result = caseValueType(valueType);
      if(result == null)
        result = defaultCase(theEObject);
      return result;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.papyrus.sysml.blocks.ValueType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.