Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EParameter


              eOperation.getEExceptions().add(getEClassifier(exceptionTypeDefinition));
            }
         
            for (Iterator k = getElements(operation, "parameter").iterator(); k.hasNext(); )
            {
              EParameter eParameter = ecoreFactory.createEParameter();
              Element parameter = (Element)k.next();
              String paramaterName = parameter.getAttributeNS(null, "name");
              XSDTypeDefinition parameterType = getEcoreTypeQNameAttribute(xsdComplexTypeDefinition, parameter, null, "type");
              EClassifier parameterEType = getEClassifier(parameterType);
              eParameter.setName(paramaterName);
              eParameter.setEType(parameterEType);

              populateETypedElement(eParameter, parameter);
              eOperation.getEParameters().add(eParameter);
            }
           
View Full Code Here


              eOperation.getEExceptions().add(getEClassifier(exceptionTypeDefinition));
            }
         
            for (Iterator k = getElements(operation, "parameter").iterator(); k.hasNext(); )
            {
              EParameter eParameter = ecoreFactory.createEParameter();
              Element parameter = (Element)k.next();
              String paramaterName = parameter.getAttributeNS(null, "name");
              XSDTypeDefinition parameterType = getEcoreTypeQNameAttribute(xsdComplexTypeDefinition, parameter, null, "type");
              EClassifier parameterEType = getEClassifier(parameterType);
              eParameter.setName(paramaterName);
              eParameter.setEType(parameterEType);

              populateETypedElement(eParameter, parameter);
              eOperation.getEParameters().add(eParameter);
            }
           
View Full Code Here

    eOperation.setEGenericType(eGenericType);
  }

  private EParameter internalAddEParameter(EOperation owner, EClassifier type, String name)
  {
    EParameter p = ecoreFactory.createEParameter();
    p.setEType(type);
    p.setName(name);
    owner.getEParameters().add(p);
    return p;
  }
View Full Code Here

    internalAddEParameter(owner, type, name);
  }

  protected void addEParameter(EOperation owner, EClassifier type, String name, int lowerBound, int upperBound)
  {
    EParameter p = internalAddEParameter(owner, type, name);
    p.setLowerBound(lowerBound);
    p.setUpperBound(upperBound);
  }
View Full Code Here

    p.setUpperBound(upperBound);
  }

  protected EParameter addEParameter(EOperation owner, EClassifier type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)
  {
    EParameter p = internalAddEParameter(owner, type, name);
    p.setLowerBound(lowerBound);
    p.setUpperBound(upperBound);
    p.setUnique(isUnique);
    p.setOrdered(isOrdered);
    return p;
  }
View Full Code Here

  }

  @Deprecated
  protected void addEParameter(EOperation owner, EGenericType type, String name, int lowerBound, int upperBound)
  {
    EParameter p = ecoreFactory.createEParameter();
    p.setEGenericType(type);
    p.setName(name);
    owner.getEParameters().add(p);
    p.setLowerBound(lowerBound);
    p.setUpperBound(upperBound);
  }
View Full Code Here

    p.setUpperBound(upperBound);
  }

  protected void addEParameter(EOperation owner, EGenericType type, String name, int lowerBound, int upperBound, boolean isUnique, boolean isOrdered)
  {
    EParameter p = ecoreFactory.createEParameter();
    p.setEGenericType(type);
    p.setName(name);
    owner.getEParameters().add(p);
    p.setLowerBound(lowerBound);
    p.setUpperBound(upperBound);
    p.setUnique(isUnique);
    p.setOrdered(isOrdered);
  }
View Full Code Here

      EList<EParameter> otherParameters = someOperation.getEParameters();
      if (parameters.size() == otherParameters.size())
      {
        for (Iterator<EParameter> i = parameters.iterator(), j = otherParameters.iterator(); i.hasNext(); )
        {
          EParameter parameter = i.next();
          EParameter otherParameter = j.next();
          if (!parameter.getEType().getInstanceTypeName().equals(otherParameter.getEType().getInstanceTypeName()))
          {
            return false;
          }
        }
        return true;
View Full Code Here

    eOperation.setEGenericType(eGenericType);
  }

  private EParameter internalAddEParameter(EOperation owner, EClassifier type, String name)
  {
    EParameter p = ecoreFactory.createEParameter();
    p.setEType(type);
    p.setName(name);
    owner.getEParameters().add(p);
    return p;
  }
View Full Code Here

    internalAddEParameter(owner, type, name);
  }

  protected void addEParameter(EOperation owner, EClassifier type, String name, int lowerBound, int upperBound)
  {
    EParameter p = internalAddEParameter(owner, type, name);
    p.setLowerBound(lowerBound);
    p.setUpperBound(upperBound);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.EParameter

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.