Package fr.ifremer.isisfish.mexico.xml
Class DomXMLParser
java.lang.Object
fr.ifremer.isisfish.mexico.xml.DomXMLParser
Parse xml using dom.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Element
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 versionprotected 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 versionprotected static FactorGroup
parseFactorGroupV3
(org.dom4j.Element fgElement, org.nuiton.topia.TopiaContext topiaContext) Non recursive parse of factor group elements (>factors<).
-
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 elementtopiaContext
- 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 versionRecursive 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 versionRecursive 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
-