Package org.brerp.base.util
Class VINUtil
java.lang.Object
org.brerp.base.util.VINUtil
VINUtil VIN Utils
- Version:
- $Id: VINUtil.java, 03/05/2010 14:24:29 muriloht
- Author:
- Murilo H. Torquato
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateVIN
(String wmi, String VDSDescriptionVehicleSeries, String VDSDescriptionModelSeries, String VDSDescriptionBody, String VDSDescriptionTransmission, String VDSDescriptionEngine, String modelYear, String plantLocation, String VISDescriptionBodyVersion, String sequenceNumber) Generate a VIN number based on parametersboolean
Check if a VIN Number is Valid Based on VIN.java class at: http://www.cs.princeton.edu/introcs/31datatype/VIN.java.htmlstatic void
-
Constructor Details
-
VINUtil
public VINUtil()
-
-
Method Details
-
isValid
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
-