Class VINUtil

java.lang.Object
org.brerp.base.util.VINUtil

public class VINUtil extends Object
VINUtil VIN Utils
Version:
$Id: VINUtil.java, 03/05/2010 14:24:29 muriloht
Author:
Murilo H. Torquato
  • Constructor Details

    • VINUtil

      public VINUtil()
  • Method Details

    • isValid

      public boolean isValid(String vinNumber)
      Check if a VIN Number is Valid Based on VIN.java class at: http://www.cs.princeton.edu/introcs/31datatype/VIN.java.html
      Parameters:
      String - vinNumber
      Returns:
      boolean
    • generateVIN

      public static String generateVIN(String wmi, String VDSDescriptionVehicleSeries, String VDSDescriptionModelSeries, String VDSDescriptionBody, String VDSDescriptionTransmission, String VDSDescriptionEngine, String modelYear, String plantLocation, String VISDescriptionBodyVersion, String sequenceNumber) throws Exception
      Generate a VIN number based on parameters
      Parameters:
      wmi -
      VDSDescriptionVehicleSeries -
      VDSDescriptionModelSeries -
      VDSDescriptionBody -
      VDSDescriptionTransmission -
      VDSDescriptionEngine -
      modelYear -
      plantLocation -
      VISDescriptionBodyVersion -
      sequenceNumber -
      Returns:
      Throws:
      Exception
    • main

      public static void main(String[] args)