Package org.goplanit.io.xml.converter
Interface EnumConverter
-
public interface EnumConverter
Utility 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.goplanit.xml.generated.Typevalues
convertFromPlanItToXmlGeneratedType(DataType type)
Convert values from Type enumeration in PLANit project to generated Typevalues enumerationstatic org.goplanit.xml.generated.Unitsvalues
convertFromPlanItToXmlGeneratedUnits(OutputProperty outputProperty)
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.goplanit.xml.generated.Typevalues convertFromPlanItToXmlGeneratedType(DataType 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.goplanit.xml.generated.Unitsvalues convertFromPlanItToXmlGeneratedUnits(OutputProperty outputProperty) throws PlanItException
Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration- Parameters:
outputProperty
- 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
-
-