예제 #1
0
  @Override
  public Object caseEAttribute(EAttribute object) {
    Attribute attrib = new Attribute(object.getName());

    attrib.type = getType(object.getEType());
    attrib.setBounds(object.getLowerBound(), object.getUpperBound());
    attrib.setStatic(false);
    attrib.setScope(Scope.PUBLIC);
    return attrib;
  }
예제 #2
0
 @Override
 public Object caseEReference(EReference object) {
   Attribute attrib = new Attribute(object.getName());
   attrib.type = getType(object.getEType());
   attrib.setBounds(object.getLowerBound(), object.getUpperBound());
   attrib.setStatic(false);
   attrib.setScope(Scope.PUBLIC);
   attrib.setContainment(object.isContainment());
   attrib.setDerived(object.isDerived());
   return attrib;
 }