Package org.planit.io.xml.util
Class EnumConversionUtil
- java.lang.Object
-
- org.planit.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.planit.xml.generated.MotorisationTypeplanitToXml(MotorisationModeType planitMotorisationType)convert motorisation type from PLANit to XMLstatic org.planit.xml.generated.TrackTypeplanitToXml(TrackModeType xmlTrackType)convert track type from PLANit to XMLstatic org.planit.xml.generated.UsedToTypeplanitToXml(UseOfModeType useOfType)convert used-to type from PLANit to XMLstatic org.planit.xml.generated.VehicularTypeplanitToXml(VehicularModeType planitVehicularType)convert motorisation type from PLANit to XMLstatic MotorisationModeTypexmlToPlanit(org.planit.xml.generated.MotorisationType xmlMotorisationType)convert motorisation type from xml to PLANitstatic TrackModeTypexmlToPlanit(org.planit.xml.generated.TrackType xmlTrackType)convert track type from xml to PLANitstatic UseOfModeTypexmlToPlanit(org.planit.xml.generated.UsedToType xmlUseOfType)convert used-to type from xml to PLANitstatic VehicularModeTypexmlToPlanit(org.planit.xml.generated.VehicularType xmlVehicularType)convert vehicle type from xml to PLANit
-
-
-
Method Detail
-
xmlToPlanit
public static MotorisationModeType xmlToPlanit(org.planit.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.planit.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.planit.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.planit.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.planit.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.planit.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.planit.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.planit.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
-
-