Class DomXMLParser

java.lang.Object
fr.ifremer.isisfish.mexico.xml.DomXMLParser

public class DomXMLParser extends Object
Parse xml using dom.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
See Also:
  • Element
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static DesignPlan
    parseDesignPlan(org.dom4j.Element rootElement, org.nuiton.topia.TopiaContext topiaContext)
    Parse element root node as Design plan.
    protected static FactorGroup
    parseFactorGroup(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
    Deprecated.
    since 4.0.0.0, this parsing method parse experimentalDesign in version "0" or "null" version, don't remove for data reading purpose, but could be removed in a future version
    protected static FactorGroup
    parseFactorGroupV2(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
    Deprecated.
    since 4.0.1.0, this parsing method parse experimentalDesign in version "2", don't remove for data reading purpose, but could be removed in a future version
    protected static FactorGroup
    parseFactorGroupV3(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
    Non recursive parse of factor group elements (>factors<).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DomXMLParser

      public DomXMLParser()
  • Method Details

    • parseDesignPlan

      public static DesignPlan parseDesignPlan(org.dom4j.Element rootElement, org.nuiton.topia.TopiaContext topiaContext)
      Parse element root node as Design plan.
      Parameters:
      rootElement - root dom element
      topiaContext - database context
      Returns:
      a DesignPlan
    • parseFactorGroup

      @Deprecated protected static FactorGroup parseFactorGroup(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
      Deprecated.
      since 4.0.0.0, this parsing method parse experimentalDesign in version "0" or "null" version, don't remove for data reading purpose, but could be removed in a future version
      Recursive parse of factor group elements (>factors<).
      Parameters:
      fgElement - factor group element (>factors<)
      topiaContext - context
      Returns:
      factor group
    • parseFactorGroupV2

      protected static FactorGroup parseFactorGroupV2(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
      Deprecated.
      since 4.0.1.0, this parsing method parse experimentalDesign in version "2", don't remove for data reading purpose, but could be removed in a future version
      Recursive parse of factor group elements (>factors<). This version handle xml file with min/max and percentage factor in each continuous factors.
      Parameters:
      fgElement - factor group element (>factors<)
      topiaContext - context
      Returns:
      factor group
    • parseFactorGroupV3

      protected static FactorGroup parseFactorGroupV3(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext)
      Non recursive parse of factor group elements (>factors<). This version handle xml file distribution definition in each continuous factors. The parsing is more complicated here because mexico file format is a bit hard too read (factor groups, features...)
      Parameters:
      fgElement - factor group element (>factors<)
      topiaContext - context
      Returns:
      factor group
      Since:
      4.0.1.0