Package org.springframework.ide.eclipse.webflow.core.internal.model

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.InputMapper


      }

      if (state.getInputMapper() == null
          && (this.inputAttributes.size() > 0 || this.inputMapping.size() > 0)) {
        if (WebflowModelXmlUtils.isVersion1Flow(state)) {
          InputMapper entry = new InputMapper();
          entry.createNew(stateClone);
          for (IInputAttribute a : this.inputAttributes) {
            entry.addInputAttribute(a);
          }
          for (IMapping a : this.inputMapping) {
            entry.addMapping(a);
          }
          stateClone.setInputMapper(entry);
        }
        else {
          stateClone.removeAllInputAttribute();
          for (IInputAttribute a : this.inputAttributes) {
            stateClone.addInputAttribute(a);
          }
          stateClone.setInputMapper(null);
        }
      }
      else if (this.inputAttributes.size() == 0 && this.inputMapping.size() == 0) {
        stateClone.setInputMapper(null);
      }
      else {
        stateClone.getInputMapper().removeAllInputAttribute();
        stateClone.getInputMapper().removeAllMapping();
        for (IInputAttribute a : this.inputAttributes) {
          stateClone.getInputMapper().addInputAttribute(a);
        }
        for (IMapping a : this.inputMapping) {
          stateClone.getInputMapper().addMapping(a);
        }
      }

      if (state.getGlobalTransitions() == null && this.globalTransitions.size() > 0) {
        GlobalTransitions entry = new GlobalTransitions();
        entry.createNew(stateClone);
        for (IStateTransition a : this.globalTransitions) {
          entry.addGlobalTransition(a);
        }
        stateClone.setGlobalTransitions(entry);
      }
      else if (this.globalTransitions.size() == 0) {
        stateClone.setGlobalTransitions(null);
View Full Code Here


        inputMapping.addAll(this.stateClone.getInputMapper().getMapping());
      }
      else {
        inputAttributes = new ArrayList<IInputAttribute>();
        inputMapping = new ArrayList<IMapping>();
        InputMapper entry = new InputMapper();
        entry.createNew(stateClone);
        stateClone.setInputMapper(entry);
      }
    }
    else {
      inputAttributes = new ArrayList<IInputAttribute>();
      inputAttributes.addAll(this.stateClone.getInputAttributes());
      inputMapping = new ArrayList<IMapping>();
      InputMapper entry = new InputMapper();
      entry.createNew(stateClone);
      stateClone.setInputMapper(entry);
    }

    if (this.stateClone.getGlobalTransitions() != null) {
      globalTransitions = new ArrayList<IStateTransition>();
      globalTransitions.addAll(this.stateClone.getGlobalTransitions().getGlobalTransitions());
    }
    else {
      globalTransitions = new ArrayList<IStateTransition>();
      GlobalTransitions entry = new GlobalTransitions();
      entry.createNew(stateClone);
      stateClone.setGlobalTransitions(entry);
    }

    exceptionHandler = new ArrayList<org.springframework.ide.eclipse.webflow.core.model.IExceptionHandler>();
    if (this.stateClone.getExceptionHandlers() != null) {
View Full Code Here

            .getInputAttributes());
        inputMapping.addAll(this.stateClone.getAttributeMapper().getInputMapper()
            .getMapping());
      }
      else {
        InputMapper i = new InputMapper();
        i.createNew(this.stateClone.getAttributeMapper());
        this.stateClone.getAttributeMapper().setInputMapper(i);
      }
    }
    else {

      AttributeMapper mapper = new AttributeMapper();
      mapper.createNew(stateClone);

      OutputMapper o = new OutputMapper();
      o.createNew(mapper);
      mapper.setOutputMapper(o);

      InputMapper i = new InputMapper();
      i.createNew(mapper);
      mapper.setInputMapper(i);

      stateClone.setAttributeMapper(mapper);
     
      if (!WebflowModelXmlUtils.isVersion1Flow(state)) {
View Full Code Here

            }
          }

          if (mapper.getInputMapper() == null
              && (this.inputAttributes.size() > 0 || this.inputMapping.size() > 0)) {
            InputMapper entry = new InputMapper();
            entry.createNew(mapper);
            for (IInputAttribute a : this.inputAttributes) {
              entry.addInputAttribute(a);
            }
            for (IMapping a : this.inputMapping) {
              entry.addMapping(a);
            }
            mapper.setInputMapper(entry);
          }
          else if (this.inputAttributes.size() == 0 && this.inputMapping.size() == 0) {
            mapper.setInputMapper(null);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.core.internal.model.InputMapper

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.