Package VASSAL.build.module.metadata
Class MetaDataFactory
java.lang.Object
VASSAL.build.module.metadata.MetaDataFactory
public class MetaDataFactory extends Object
-
Field Summary
Fields Modifier and Type Field Description protected static String
BUILDFILE_EXTENSION_ELEMENT
protected static String
BUILDFILE_MODULE_ELEMENT1
protected static String
BUILDFILE_MODULE_ELEMENT2
-
Constructor Summary
Constructors Constructor Description MetaDataFactory()
-
Method Summary
Modifier and Type Method Description static AbstractMetaData
buildMetaData(File file)
Factory method to build and return an appropriate MetaData class based on the contents of the file.
-
Field Details
-
BUILDFILE_MODULE_ELEMENT1
- See Also:
- Constant Field Values
-
BUILDFILE_MODULE_ELEMENT2
- See Also:
- Constant Field Values
-
BUILDFILE_EXTENSION_ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MetaDataFactory
public MetaDataFactory()
-
-
Method Details
-
buildMetaData
Factory method to build and return an appropriate MetaData class based on the contents of the file. Return null if the file is not a Zip archive, or it is not a VASSAL Module, Extension or Save Game.- Parameters:
file
- metadata file- Returns:
- MetaData object
-