Package org.eclipse.emf.ecore.util

Examples of org.eclipse.emf.ecore.util.FeatureMap$Entry$Internal


        if (((StartEvent) flowElement).getOutgoing().size() == 1) {
          SequenceFlow sequenceFlow = (((StartEvent) flowElement).getOutgoing()).get(0);
          if (sequenceFlow.getTargetRef() instanceof UserTask) {
            UserTask userTask = (UserTask) sequenceFlow.getTargetRef();
            for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
              FeatureMap extensionElements = extensionAttributeValue.getValue();
              for (Entry entry : extensionElements) {
                if (entry.getValue() instanceof TaskCommand) {
                  TaskCommand taskCommand = (TaskCommand) entry.getValue();
                  taskCommands.add(taskCommand);
                }
View Full Code Here


        LoopCharacteristics loopCharacteristics = userTask.getLoopCharacteristics();

        if (loopCharacteristics instanceof MultiInstanceLoopCharacteristics) {

          for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
            FeatureMap extensionElements = extensionAttributeValue.getValue();

            for (Entry entry : extensionElements) {
              if (entry.getValue() instanceof TaskCommand) {
                TaskCommand taskCommand = (TaskCommand) entry.getValue();
                if (taskCommand.getCommandType().equals("rollBack")) {
View Full Code Here

  private static void verifyFormIsNull(FlowElement flowElement,StringBuffer sb) {
    if (flowElement instanceof UserTask) {
      UserTask userTask = (UserTask) flowElement;

      for (ExtensionAttributeValue extensionAttributeValue : userTask.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();

        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof FormUri) {
            FormUri formUri = (FormUri) entry.getValue();
            if (formUri.getExpression().getValue() != null || !(formUri.getExpression().getValue().equals(""))) {
View Full Code Here

   */
  private static void allUserTaskNodeHaveTaskCommand(FlowElement flowElement,StringBuffer sb) {
    if (flowElement instanceof UserTask) {

      for (ExtensionAttributeValue extensionAttributeValue : ((UserTask) flowElement).getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();

        for (Entry entry : extensionElements) {
          if (entry.getValue() instanceof TaskCommand) {
            TaskCommand taskCommand = (TaskCommand) entry.getValue();
            if (taskCommand != null) {
View Full Code Here

  public static List<DataVariable> getDataVariables(BaseElement baseElement) {

   
    if (baseElement.getExtensionValues().size() > 0) {
      for (ExtensionAttributeValue extensionAttributeValue : baseElement.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();
        Object objectElement = extensionElements.get(FixFlowPackage.Literals.DOCUMENT_ROOT__DATA_VARIABLE, true);
        if (objectElement != null) {

          return (List<DataVariable>) objectElement;
       
View Full Code Here

  public static <T> List<T> getExtensionElementList( Class<T> t ,BaseElement baseElement,EReference eReference){
   
   
    if (baseElement.getExtensionValues().size() > 0) {
      for (ExtensionAttributeValue extensionAttributeValue : baseElement.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();
        Object objectElement = extensionElements.get(eReference, true);
        if (objectElement != null) {

          List<T> tObjList = (List<T>) objectElement;
          return tObjList;
       
View Full Code Here

      return null;
    }
   
    if (baseElement.getExtensionValues().size() > 0) {
      for (ExtensionAttributeValue extensionAttributeValue : baseElement.getExtensionValues()) {
        FeatureMap extensionElements = extensionAttributeValue.getValue();
       
        Object objectElement = extensionElements.get(eReference, true);
        if (objectElement != null) {

         
          if(objectElement instanceof List){
            List<T> tObjList = (List<T>) objectElement;
View Full Code Here

    result.append('@');
    result.append(eStructuralFeature.getName());

    if (eStructuralFeature instanceof EAttribute)
    {
      FeatureMap featureMap = (FeatureMap)eGet(eStructuralFeature, false);
      for (int i = 0, size = featureMap.size(); i < size; ++i)
      {
        if (featureMap.getValue(i) == eObject)
        {
          EStructuralFeature entryFeature = featureMap.getEStructuralFeature(i);
          if (entryFeature instanceof EReference && ((EReference)entryFeature).isContainment())
          {
            result.append('.');
            result.append(i);
            return result.toString();
View Full Code Here

        {
          return (EReference)eFeature;
        }
        else
        {
          FeatureMap featureMap = (FeatureMap)eContainer.eGet(eFeature);
          for (int i = 0, size = featureMap.size(); i < size; ++i)
          {
            if (featureMap.getValue(i) == eObject)
            {
              EStructuralFeature entryFeature = featureMap.getEStructuralFeature(i);
              if (entryFeature instanceof EReference)
              {
                EReference entryReference = (EReference)entryFeature;
                if (entryReference.isContainment())
                {
View Full Code Here

    {
      if (!FeatureMapUtil.isFeatureMap(openFeature))
      {
        openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
      }
      FeatureMap featureMap = (FeatureMap)eGet(openFeature);
      return ((FeatureMap.Internal)featureMap).get(eFeature, resolve);
    }
    else
    {
      throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid feature");
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.util.FeatureMap$Entry$Internal

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.