Examples of XMLFileLoader


Examples of net.alteiar.utils.XMLFileLoader

  public static String path = "./ressources/EffectRessource/xml/Trigger.xml";

  public ArrayList<ArrayList<String[]>> CreateComboList(String path) {

    ArrayList<ArrayList<String[]>> result = new ArrayList<ArrayList<String[]>>();
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> triggerTypes = xmlDocument
        .getNodeNameInTag("TriggerTypes");
    result.add(new ArrayList<String[]>());

    String[] temp = new String[triggerTypes.size()];
    temp = triggerTypes.toArray(temp);
    result.get(0).add(temp);

    result.add(new ArrayList<String[]>());
    for (int i = 0; i < result.get(0).get(0).length; i++) {
      ArrayList<String> activatorsTypes = xmlDocument
          .getNodesInTagAndName("TriggerAssociation", (result.get(0)
              .get(0)[i]));

      String[] temp2 = new String[activatorsTypes.size()];
      temp2 = activatorsTypes.toArray(temp2);
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return result;
  }

  public Class<?> getTriggerClass(String path, String name)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> type = xmlDocument.getNodeItemInTag("Trigger", name);
    return Class.forName(type.get(0));
  }
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return Class.forName(type.get(0));
  }

  public Class<?> getActivatorClass(String path, String name,
      String triggerName) throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    String type = xmlDocument.getNodeItemInTag("Trigger", "class",
        triggerName, name);
    return Class.forName(type);
  }
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return Class.forName(type);
  }

  public ArrayList<Class<?>> getTriggerClasses(String path)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> types = xmlDocument.getNodeItemInTag("TriggerTypes");
    ArrayList<Class<?>> result = new ArrayList<Class<?>>();
    for (String type : types) {
      result.add(Class.forName(type));
    }
    return result;
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return result;
  }

  public ArrayList<String> getTriggerName(String path)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> types = xmlDocument.getNodeNameInTag("TriggerTypes");
    return types;
  }
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

  public static String path = "./ressources/EffectRessource/xml/Effect.xml";

  public ArrayList<ArrayList<String[]>> CreateComboList(String path) {
    ArrayList<ArrayList<String[]>> result = new ArrayList<ArrayList<String[]>>();
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> triggerTypes = xmlDocument
        .getNodeNameInTag("EffectTypes");
    result.add(new ArrayList<String[]>());

    String[] temp = new String[triggerTypes.size()];
    temp = triggerTypes.toArray(temp);
    result.get(0).add(temp);

    result.add(new ArrayList<String[]>());
    for (int i = 0; i < result.get(0).get(0).length; i++) {
      ArrayList<String> activatorsTypes = xmlDocument
          .getNodesInTagAndName("EffectAssociation", (result.get(0)
              .get(0)[i]));

      String[] temp2 = new String[activatorsTypes.size()];
      temp2 = activatorsTypes.toArray(temp2);
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return result;
  }

  public Class<?> getEffectClass(String path, String name)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> type = xmlDocument.getNodeItemInTag("Effect", name);
    return Class.forName(type.get(0));
  }
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return Class.forName(type.get(0));
  }

  public Class<?> getElementClass(String path, String name, String triggerName)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    String type = xmlDocument.getNodeItemInTag("Effect", "class",
        triggerName, name);
    return Class.forName(type);
  }
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return Class.forName(type);
  }

  public ArrayList<Class<?>> getEffectClasses(String path)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> types = xmlDocument.getNodeItemInTag("EffectTypes");
    ArrayList<Class<?>> result = new ArrayList<Class<?>>();
    for (String type : types) {
      result.add(Class.forName(type));
    }
    return result;
View Full Code Here

Examples of net.alteiar.utils.XMLFileLoader

    return result;
  }

  public ArrayList<String> getEffectName(String path)
      throws ClassNotFoundException {
    XMLFileLoader xmlDocument = new XMLFileLoader(path);
    ArrayList<String> types = xmlDocument.getNodeNameInTag("EffectTypes");
    return types;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.