fr.etai.xat2v2.util
Class VehicleUtil

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

public final class VehicleUtil
extends Object


Method Summary
static void addAdministrativeId(Vehicle vehicle, String ref, String id)
          Adds an administrative id into the alternative-ref-list of the vehicle
static Classification[] getAdministrativeIdList(Vehicle vehicle, String ref)
          Returns the classifications in the aternativeRefList of the vehicle mathing the ref given.
static Value[] getCapacityAmountListByAmountOf(Vehicle vehicle, String ref)
          Returns the values of the vehicle whose amount-of checks the ref in the ETAI:measure dictionary
static Classification getClassificationByRef(Vehicle vehicle, String dic, String ref)
          Gets the classification from classificationList property.
static String getClassificationValue(Vehicle vehicle, String dic, String ref)
          Gets the classification.value from classificationList.
static ExplicitDate[] getDateListByType(Vehicle vehicle, String ref)
          Returns the dates of this vehicle matching the ref in the ETAI:date dictionary
static Identification[] getIdentificationListByBreakdown(Vehicle vehicle, String ref)
          returns the vehicle identifications whose breakdown matches the given ref
static Identification[] getIdentificationListBySource(Vehicle vehicle, String source)
          returns the vehicle identifications whose source matches the given one
static Tire getTireByRef(Vehicle vehicle, String dic, String ref)
          Gets the tire from tireList property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAdministrativeIdList

public static Classification[] getAdministrativeIdList(Vehicle vehicle,
                                                       String ref)
Returns the classifications in the aternativeRefList of the vehicle mathing the ref given.

Parameters:
vehicle -
ref -
Returns:

addAdministrativeId

public static void addAdministrativeId(Vehicle vehicle,
                                       String ref,
                                       String id)
Adds an administrative id into the alternative-ref-list of the vehicle

Parameters:
vehicle -
ref -
id -

getDateListByType

public static ExplicitDate[] getDateListByType(Vehicle vehicle,
                                               String ref)
Returns the dates of this vehicle matching the ref in the ETAI:date dictionary

Parameters:
vehicle -
ref -
Returns:

getCapacityAmountListByAmountOf

public static Value[] getCapacityAmountListByAmountOf(Vehicle vehicle,
                                                      String ref)
Returns the values of the vehicle whose amount-of checks the ref in the ETAI:measure dictionary

Parameters:
vehicle -
ref -
Returns:

getIdentificationListByBreakdown

public static Identification[] getIdentificationListByBreakdown(Vehicle vehicle,
                                                                String ref)
returns the vehicle identifications whose breakdown matches the given ref

Parameters:
vehicle -
ref -
Returns:

getIdentificationListBySource

public static Identification[] getIdentificationListBySource(Vehicle vehicle,
                                                             String source)
returns the vehicle identifications whose source matches the given one

Parameters:
vehicle -
source -
Returns:

getClassificationByRef

public static Classification getClassificationByRef(Vehicle vehicle,
                                                    String dic,
                                                    String ref)
Gets the classification from classificationList property.

Parameters:
vehicle -
dic -
ref -
Returns:

getClassificationValue

public static String getClassificationValue(Vehicle vehicle,
                                            String dic,
                                            String ref)
Gets the classification.value from classificationList.

Parameters:
vehicle -
dic -
ref -
Returns:

getTireByRef

public static Tire getTireByRef(Vehicle vehicle,
                                String dic,
                                String ref)
Gets the tire from tireList property.

Parameters:
vehicle -
dic -
ref -
Returns:


Copyright © 2012. All Rights Reserved.