Package org.goplanit.io.xml.util
Class PlanitXmlReaderSettings
- java.lang.Object
-
- org.goplanit.io.xml.util.PlanitXmlReaderSettings
-
- All Implemented Interfaces:
ConverterReaderSettings
- Direct Known Subclasses:
PlanitDemandsReaderSettings
,PlanitNetworkReaderSettings
,PlanitRoutedServicesReaderSettings
,PlanitServiceNetworkReaderSettings
,PlanitZoningReaderSettings
public class PlanitXmlReaderSettings extends Object implements ConverterReaderSettings
Settings relevant for a Planit Xml reader- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_SYNC_XMLIDS_TO_IDS
static String
DEFAULT_XML_EXTENSION
-
Constructor Summary
Constructors Constructor Description PlanitXmlReaderSettings()
Default constructor using default file extension and user must set output dir afterwards manuallyPlanitXmlReaderSettings(String inputDirectory)
ConstructorPlanitXmlReaderSettings(String inputDirectory, String xmlFileExtension)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInputDirectory()
The input path directory usedString
getXmlFileExtension()
the XML extension used to check for within path directory usedboolean
isSyncXmlIdsToIds()
Verify if reader is designated to replace parsed XML ids with internally generated idsvoid
logSettings()
Log relevant settingsvoid
reset()
be able to reset all settings if neededvoid
setInputDirectory(String inputDirectory)
Set the input path directory usedvoid
setSyncXmlIdsToIds(boolean syncXmlIdsToIds)
Determine if reader should replace parsed XML ids with internally generated idsvoid
setXmlFileExtension(String xmlFileExtension)
the xml extension used to check for within path directory used
-
-
-
Field Detail
-
DEFAULT_XML_EXTENSION
public static String DEFAULT_XML_EXTENSION
-
DEFAULT_SYNC_XMLIDS_TO_IDS
public static boolean DEFAULT_SYNC_XMLIDS_TO_IDS
-
-
Constructor Detail
-
PlanitXmlReaderSettings
public PlanitXmlReaderSettings()
Default constructor using default file extension and user must set output dir afterwards manually
-
PlanitXmlReaderSettings
public PlanitXmlReaderSettings(String inputDirectory)
Constructor- Parameters:
inputDirectory
- to use
-
-
Method Detail
-
reset
public void reset()
be able to reset all settings if needed- Specified by:
reset
in interfaceConverterReaderSettings
-
logSettings
public void logSettings()
Log relevant settings- Specified by:
logSettings
in interfaceConverterReaderSettings
-
getInputDirectory
public String getInputDirectory()
The input path directory used- Returns:
- directory used
-
setInputDirectory
public void setInputDirectory(String inputDirectory)
Set the input path directory used- Parameters:
inputDirectory
- to use
-
getXmlFileExtension
public String getXmlFileExtension()
the XML extension used to check for within path directory used- Returns:
- XML file extension used
-
setXmlFileExtension
public void setXmlFileExtension(String xmlFileExtension)
the xml extension used to check for within path directory used- Parameters:
xmlFileExtension
- extension to use
-
isSyncXmlIdsToIds
public boolean isSyncXmlIdsToIds()
Verify if reader is designated to replace parsed XML ids with internally generated ids- Returns:
- true when syncing is active, false otherwise
-
setSyncXmlIdsToIds
public void setSyncXmlIdsToIds(boolean syncXmlIdsToIds)
Determine if reader should replace parsed XML ids with internally generated ids- Parameters:
syncXmlIdsToIds
- syncing active when true, false otherwise
-
-