fr.etai.xat2v2.util
Class ValueUtil

java.lang.Object
  extended by fr.etai.xat2v2.util.ValueUtil

public final class ValueUtil
extends Object


Method Summary
static boolean checkValueAmountOf(Value value, String amountOfDictionary, String amountOfReference)
          Vérifie si le qualificatif de la valeur correspond au dictionnaire et à la référence en paramètre
static boolean checkValueClass(Value value, String valueClass)
          Checks the type of the value
static boolean matchAmountOf(Value value, String dictionary, String ref)
          Checks if the value has an amount with the specified dictionary and reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matchAmountOf

public static boolean matchAmountOf(Value value,
                                    String dictionary,
                                    String ref)
Checks if the value has an amount with the specified dictionary and reference.

Parameters:
value -
dictionary -
ref -
Returns:

checkValueClass

public static boolean checkValueClass(Value value,
                                      String valueClass)
Checks the type of the value

Parameters:
value -
valueClass - value type
Returns:
true if the value type matches, false otherwise. This method will always return true if valueClass parameter is null.

checkValueAmountOf

public static boolean checkValueAmountOf(Value value,
                                         String amountOfDictionary,
                                         String amountOfReference)
Vérifie si le qualificatif de la valeur correspond au dictionnaire et à la référence en paramètre

Parameters:
value - valeur à tester
amountOfDictionary - dictionnaire qualifiant la valeur
amountOfReference - référence du dictionnaire précédent
Returns:
vrai si la valeur correspond, faux sinon


Copyright © 2012. All Rights Reserved.