Package pathfinder.bean.spell

Examples of pathfinder.bean.spell.UnitValue


      }
      if (composant == null) {
        composant = "";
      }

      UnitValue range = parseUnitValues(element.element("range"));

      UnitValue castingTime = parseUnitValues(element
          .element("castingTime"));

      String description = getTextValue(element.element("summary"));
      if (description == null) {
        description = "";
View Full Code Here


    return res;
  }

  public static UnitValue parseUnitValues(Element element) {
    if (element == null) {
      return new UnitValue("", "");
    }

    String unitType = null;
    if (element.attributeCount() > 0) {
      unitType = element.attributeValue("unit");
    }
    String value = element.getTextTrim();
    if (value.isEmpty()) {
      value = element.attributeValue("value");
    }

    return new UnitValue(unitType, value);
  }
View Full Code Here

      }
      if (composant == null) {
        composant = "";
      }

      UnitValue range = parseUnitValues(element.element("range"));

      UnitValue castingTime = parseUnitValues(element
          .element("castingTime"));

      String description = getTextValue(element.element("summary"));
      if (description == null) {
        description = "";
View Full Code Here

    return res;
  }

  public static UnitValue parseUnitValues(Element element) {
    if (element == null) {
      return new UnitValue("", "");
    }

    String unitType = null;
    if (element.attributeCount() > 0) {
      unitType = element.attributeValue("unit");
    }
    String value = element.getTextTrim();
    if (value.isEmpty()) {
      value = element.attributeValue("value");
    }

    return new UnitValue(unitType, value);
  }
View Full Code Here

TOP

Related Classes of pathfinder.bean.spell.UnitValue

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.