Package org.goplanit.io.xml.util
Class EnumConversionUtil
- java.lang.Object
-
- org.goplanit.io.xml.util.EnumConversionUtil
-
public class EnumConversionUtil extends Object
Some methods to convert the XML schema enums to PLANit memory model enums- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description EnumConversionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.goplanit.xml.generated.MotorisationType
planitToXml(MotorisationModeType planitMotorisationType)
convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TrackType
planitToXml(TrackModeType xmlTrackType)
convert track type from PLANit to XMLstatic org.goplanit.xml.generated.UsedToType
planitToXml(UseOfModeType useOfType)
convert used-to type from PLANit to XMLstatic org.goplanit.xml.generated.VehicularType
planitToXml(VehicularModeType planitVehicularType)
convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TimeUnit
planitToXml(Unit planitTimeUnit)
Convert time unit from PLANit to XML TimeUnitstatic MotorisationModeType
xmlToPlanit(org.goplanit.xml.generated.MotorisationType xmlMotorisationType)
convert motorisation type from xml to PLANitstatic TimeUnit
xmlToPlanit(org.goplanit.xml.generated.TimeUnit xmlTimeUnitType)
Convert TimeUnit type from XML to PLANit Unitstatic TrackModeType
xmlToPlanit(org.goplanit.xml.generated.TrackType xmlTrackType)
convert track type from xml to PLANitstatic UseOfModeType
xmlToPlanit(org.goplanit.xml.generated.UsedToType xmlUseOfType)
convert used-to type from xml to PLANitstatic VehicularModeType
xmlToPlanit(org.goplanit.xml.generated.VehicularType xmlVehicularType)
convert vehicle type from xml to PLANit
-
-
-
Method Detail
-
xmlToPlanit
public static MotorisationModeType xmlToPlanit(org.goplanit.xml.generated.MotorisationType xmlMotorisationType) throws PlanItException
convert motorisation type from xml to PLANit- Parameters:
xmlMotorisationType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
planitToXml
public static org.goplanit.xml.generated.MotorisationType planitToXml(MotorisationModeType planitMotorisationType) throws PlanItException
convert motorisation type from PLANit to XML- Parameters:
planitMotorisationType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
xmlToPlanit
public static VehicularModeType xmlToPlanit(org.goplanit.xml.generated.VehicularType xmlVehicularType) throws PlanItException
convert vehicle type from xml to PLANit- Parameters:
xmlVehicularType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
planitToXml
public static org.goplanit.xml.generated.VehicularType planitToXml(VehicularModeType planitVehicularType) throws PlanItException
convert motorisation type from PLANit to XML- Parameters:
planitVehicularType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
xmlToPlanit
public static TrackModeType xmlToPlanit(org.goplanit.xml.generated.TrackType xmlTrackType) throws PlanItException
convert track type from xml to PLANit- Parameters:
xmlTrackType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
planitToXml
public static org.goplanit.xml.generated.TrackType planitToXml(TrackModeType xmlTrackType) throws PlanItException
convert track type from PLANit to XML- Parameters:
xmlTrackType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
xmlToPlanit
public static UseOfModeType xmlToPlanit(org.goplanit.xml.generated.UsedToType xmlUseOfType) throws PlanItException
convert used-to type from xml to PLANit- Parameters:
xmlUseOfType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
planitToXml
public static org.goplanit.xml.generated.UsedToType planitToXml(UseOfModeType useOfType) throws PlanItException
convert used-to type from PLANit to XML- Parameters:
useOfType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
xmlToPlanit
public static TimeUnit xmlToPlanit(org.goplanit.xml.generated.TimeUnit xmlTimeUnitType) throws PlanItException
Convert TimeUnit type from XML to PLANit Unit- Parameters:
xmlTimeUnitType
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
planitToXml
public static org.goplanit.xml.generated.TimeUnit planitToXml(Unit planitTimeUnit) throws PlanItException
Convert time unit from PLANit to XML TimeUnit- Parameters:
planitTimeUnit
- to convert- Returns:
- result
- Throws:
PlanItException
- thrown if error
-
-