Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ResponseElement


      return layer;
    }

    for (Iterator i = layer.getAll(); i.hasNext();)
    {
      ResponseElement newElement = (ResponseElement) i.next();

      base.add(newElement);
    }

    for (Iterator j = layer.getAttributes().keySet().iterator(); j.hasNext();)
View Full Code Here


  public void copyFrom(ModelResponse res) throws ModelException
  {
    assert res != null;
    originalRes = res;

    ResponseElement oneElement = null;

    for (Iterator ie = res.getAll(); ie.hasNext();)
    {
      oneElement = (ResponseElement) ie.next();

      if (oneElement instanceof Command)
      {
        add(new CommandMessage((Command) oneElement));
      }
      else if (oneElement instanceof Input)
      {
        add(new InputMessage((Input) oneElement));
      }
      else if (oneElement instanceof Output)
      {
        add(new OutputMessage((Output) oneElement));
      }
      else
      {
        throw new ModelException("Element " + oneElement.getName() + " is of an unknown type: "
                + oneElement.getClass().getName() + "'");
      }
    }

    /* Attributes must be either ResponseElements, or basic Java types */
    String oneAttribName = null;
View Full Code Here

    List nested = re.getAll();

    if (nested != null)
    {
      ResponseElement oneNested = null;

      for (Iterator in = nested.iterator(); in.hasNext();)
      {
        oneNested = (ResponseElement) in.next();

        if (oneNested instanceof Command)
        {
          add(new CommandMessage((Command) oneNested));
        }
        else if (oneNested instanceof Input)
        {
          add(new InputMessage((Input) oneNested));
        }
        else if (oneNested instanceof Output)
        {
          add(new OutputMessage((Output) oneNested));
        }
        else
        {
          throw new IllegalArgumentException("Nested element " + oneNested.getName() + " of element "
                  + getName() + " is not a valid type. It is " + oneNested.getClass().getName());
        }
      }
    }

    Map attribs = re.getAttributes();
View Full Code Here

      set("name", re.getName());

      if (allNested.size() > 0)
      {
        ResponseElement nestedElement = null;

        for (Iterator in = allNested.iterator(); in.hasNext();)
        {
          nestedElement = (ResponseElement) in.next();
          newNested.add(new ResponseElementDynaBean(nestedElement));
View Full Code Here

    {
      oneChild = children.item(i);

      if (! getAttribute(oneChild, "element-type").equals(""))
      {
        ResponseElement child = handleChild(oneChild);

        if (child != null)
        {
          res.add(child);
        }
View Full Code Here

    {
      oneSub = oneChild.getChildNodes().item(i);

      if (! getAttribute(oneChild, "element-type").equals(""))
      {
        ResponseElement ne = handleChild(oneSub);

        re.add(ne);
      }
    }
  }
View Full Code Here

    {
      ret.append("\t<nested>\n");

      for (Iterator i = nestedElements.iterator(); i.hasNext();)
      {
        ResponseElement oneElement = (ResponseElement) i.next();

        ret.append("\t" + oneElement.toString());
      }

      ret.append("\t</nested>\n");
    }
View Full Code Here

      }

      xmldoc.getDocumentElement().appendChild(errorsElement);
    }

    ResponseElement oneElement = null;

    for (Iterator reList = res.getAll(); reList.hasNext();)
    {
      oneElement = (ResponseElement) reList.next();
View Full Code Here

    if (e == null)
    {
      throw new IllegalArgumentException("Element may not be null");
    }

    ResponseElement oneNested = null;

    for (Iterator i = re.getAll().iterator(); i.hasNext();)
    {
      oneNested = (ResponseElement) i.next();
View Full Code Here

      return layer;
    }

    for (Iterator i = layer.getAll(); i.hasNext();)
    {
      ResponseElement newElement = (ResponseElement) i.next();

      base.add(newElement);
    }

    String oneAttribName = null;
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.model.ResponseElement

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.