Package org.planit.io.xml.converter
Interface EnumConverter
-
public interface EnumConverterUtility methods to convert enumerations from the PLANit org.planit.output.enums package into enumerations generated from the output XSD file- Author:
- gman6028
-
-
Method Summary
Static Methods Modifier and Type Method Description static org.planit.xml.generated.TypevaluesconvertFromPlanItToXmlGeneratedType(Type type)Convert values from Type enumeration in PLANit project to generated Typevalues enumerationstatic org.planit.xml.generated.UnitsvaluesconvertFromPlanItToXmlGeneratedUnits(Units units)Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration
-
-
-
Field Detail
-
LOGGER
static final Logger LOGGER
the logger
-
-
Method Detail
-
convertFromPlanItToXmlGeneratedType
static org.planit.xml.generated.Typevalues convertFromPlanItToXmlGeneratedType(Type type) throws PlanItException
Convert values from Type enumeration in PLANit project to generated Typevalues enumeration- Parameters:
type- value of Type enumeration- Returns:
- value of generated Typevalues enumeration
- Throws:
PlanItException- thrown if a value of Type enumeration is not included in the XSD enumeration definition
-
convertFromPlanItToXmlGeneratedUnits
static org.planit.xml.generated.Unitsvalues convertFromPlanItToXmlGeneratedUnits(Units units) throws PlanItException
Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration- Parameters:
units- value of Units enumeration- Returns:
- value of generated Unitsvalues enumeration
- Throws:
PlanItException- thrown if a value of Units enumeration is not included in the XSD enumeration definition
-
-