fr.ifremer.isisfish.mexico.xml
Class DomXMLParser

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

public class DomXMLParser
extends Object

Parse xml using dom.

Version:
$Revision: 1.0 $ Last update : $Date: 13 mars 2009 $ By : $Author: chatellier $
Author:
chatellier
See Also:
Element

Field Summary
static String CARDINALITY
           
static String COEFFICIENT
           
static String CONTINUOUS
           
static String DISCRETE
           
static String DOMAIN
           
static String ENUMERATION
           
static String EQUATION
           
static String EQUATIONCONTINUOUS
           
static String FIXED
           
static String INTEGER
           
static String MATRIXCONTINUOUS
           
static String MAX
           
static String MIN
           
static String MX
           
static String NAME
           
static String PERCENTAGE
           
static String PROPERTY
           
static String RANGE
           
static String REFERENCE
           
static String RULE
           
static String RULES
           
static String TARGET
           
static String TYPE
           
static String VALUE
           
static String VARIABLE
           
static String VERSION
           
 
Constructor Summary
DomXMLParser()
           
 
Method Summary
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)
          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
 

Field Detail

DISCRETE

public static final String DISCRETE
See Also:
Constant Field Values

ENUMERATION

public static final String ENUMERATION
See Also:
Constant Field Values

DOMAIN

public static final String DOMAIN
See Also:
Constant Field Values

FIXED

public static final String FIXED
See Also:
Constant Field Values

VALUE

public static final String VALUE
See Also:
Constant Field Values

RULE

public static final String RULE
See Also:
Constant Field Values

RULES

public static final String RULES
See Also:
Constant Field Values

VERSION

public static final String VERSION
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

PROPERTY

public static final String PROPERTY
See Also:
Constant Field Values

TARGET

public static final String TARGET
See Also:
Constant Field Values

CONTINUOUS

public static final String CONTINUOUS
See Also:
Constant Field Values

MATRIXCONTINUOUS

public static final String MATRIXCONTINUOUS
See Also:
Constant Field Values

COEFFICIENT

public static final String COEFFICIENT
See Also:
Constant Field Values

EQUATIONCONTINUOUS

public static final String EQUATIONCONTINUOUS
See Also:
Constant Field Values

EQUATION

public static final String EQUATION
See Also:
Constant Field Values

VARIABLE

public static final String VARIABLE
See Also:
Constant Field Values

PERCENTAGE

public static final String PERCENTAGE
See Also:
Constant Field Values

REFERENCE

public static final String REFERENCE
See Also:
Constant Field Values

RANGE

public static final String RANGE
See Also:
Constant Field Values

MIN

public static final String MIN
See Also:
Constant Field Values

MAX

public static final String MAX
See Also:
Constant Field Values

CARDINALITY

public static final String CARDINALITY
See Also:
Constant Field Values

INTEGER

public static final String INTEGER
See Also:
Constant Field Values

MX

public static final String MX
See Also:
Constant Field Values
Constructor Detail

DomXMLParser

public DomXMLParser()
Method Detail

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)
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


Copyright © 1999-2012 CodeLutin. All Rights Reserved.