Package org.apache.ofbiz.datafile
Class ModelDataFileReader
- java.lang.Object
-
- org.apache.ofbiz.datafile.ModelDataFileReader
-
public final class ModelDataFileReader extends java.lang.Object
Flat File definition reader
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description ModelDataFileReader(java.net.URL readerURL)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getDataFileNames()
Creates a Collection with the dataFileName of each DataFile defined in the specified XML DataFile Descriptor file.java.util.Iterator<java.lang.String>
getDataFileNamesIterator()
Creates a Iterator with the dataFileName of each DataFile defined in the specified XML DataFile Descriptor file.ModelDataFile
getModelDataFile(java.lang.String dataFileName)
Gets an DataFile object based on a definition from the specified XML DataFile descriptor file.static ModelDataFileReader
getModelDataFileReader(java.net.URL readerURL)
java.util.Map<java.lang.String,ModelDataFile>
getModelDataFiles()
-
-
-
Constructor Detail
-
ModelDataFileReader
public ModelDataFileReader(java.net.URL readerURL) throws DataFileException
- Throws:
DataFileException
-
-
Method Detail
-
getModelDataFileReader
public static ModelDataFileReader getModelDataFileReader(java.net.URL readerURL) throws DataFileException
- Throws:
DataFileException
-
getDataFileNames
public java.util.Collection<java.lang.String> getDataFileNames()
Creates a Collection with the dataFileName of each DataFile defined in the specified XML DataFile Descriptor file.- Returns:
- A Collection of dataFileName Strings
-
getDataFileNamesIterator
public java.util.Iterator<java.lang.String> getDataFileNamesIterator()
Creates a Iterator with the dataFileName of each DataFile defined in the specified XML DataFile Descriptor file.- Returns:
- A Iterator of dataFileName Strings
-
getModelDataFile
public ModelDataFile getModelDataFile(java.lang.String dataFileName)
Gets an DataFile object based on a definition from the specified XML DataFile descriptor file.- Parameters:
dataFileName
- The dataFileName of the DataFile definition to use.- Returns:
- An DataFile object describing the specified dataFile of the specified descriptor file.
-
getModelDataFiles
public java.util.Map<java.lang.String,ModelDataFile> getModelDataFiles()
-
-