Class ModuleMetaData
java.lang.Object
VASSAL.build.module.metadata.AbstractMetaData
VASSAL.build.module.metadata.ModuleMetaData
Class representing the metadata for a Module or an Extension. Modules
and extensions can't be differentiated until either the metadata or the
buildfile is parsed, so they share the same metadata structure.
- Since:
- 3.1.0
- Author:
- Brent Easton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected VASSAL.build.module.metadata.AbstractMetaData.Attributestatic final StringFields inherited from class AbstractMetaData
BUG_11929_VASSAL_FIX_VERSION, BUILDFILE_EXTENSION_ELEMENT, BUILDFILE_MODULE_ELEMENT1, BUILDFILE_MODULE_ELEMENT2, CHECKSUM_ELEMENT, DATE_SAVED_ELEMENT, DESCRIPTION_ATTR, DESCRIPTION_ELEMENT, descriptionAttr, EXTENSION_ATTR, extra1, EXTRA1_ELEMENT, extra2, EXTRA2_ELEMENT, FALSE, LANG_ATTR, lastSaved, MODULE_NAME_ATTR, MODULE_NAME_ELEMENT, MODULE_VERSION_ATTR, MODULE_VERSION_ELEMENT, NAME_ATTR, NAME_ELEMENT, parser, ROOT_ELEMENT, TRUE, VASSAL_VERSION_ATTR, VASSAL_VERSION_ELEMENT, vassalVersion, version, VERSION_ATTR, VERSION_ELEMENTModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected VASSAL.build.module.metadata.AbstractMetaData.Attributeprotected static final Stringprotected Stringprotected static final Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final XMLReaderThis is the shared parser for all subclasses of AbstractMetaData.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected Stringprotected Stringprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionModuleMetaData(String name, String version) ModuleMetaData(ZipFile zip) ModuleMetaData(GameModule module) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddElements(Document doc, Element root) Add elements specific to a ModuleMetaDataReturn the version of the metadata structuregetName()Return the Entry name for the metadata filevoidRead and validate a Module fileMethods inherited from class AbstractMetaData
copyModuleMetadata, copyModuleMetadata, copyModuleMetadata, formatLastSaved, getDescription, getExtra1, getExtra2, getLastSaved, getLocalizedDescription, getVassalVersion, getVersion, isPreBug11929, save, save, save, save, setDescription, setDescription, setExtra1, setExtra2, setLastSaved, setVassalVersion, setVersionModifier and TypeMethodDescriptionvoidcopyModuleMetadata(ArchiveWriter archive) Copy the Module metadata from the current module into the specified archive.voidcopyModuleMetadata(FileArchive archive) voidstatic booleanisPreBug11929(String version) protected voidsave(OutputStream out) voidsave(ArchiveWriter archive) Write common metadata to the specified Archive.voidsave(FileArchive archive) voidvoidsetDescription(String desc) voidsetDescription(VASSAL.build.module.metadata.AbstractMetaData.Attribute desc) voidvoidvoidsetLastSaved(String lastSaved) voidvoidsetVersion(String s)
-
Field Details
-
ZIP_ENTRY_NAME
- See Also:
-
DATA_VERSION
- See Also:
-
nameAttr
protected VASSAL.build.module.metadata.AbstractMetaData.Attribute nameAttr
-
-
Constructor Details
-
ModuleMetaData
-
ModuleMetaData
-
ModuleMetaData
-
-
Method Details
-
getName
-
getLocalizedName
-
getZipEntryName
Description copied from class:AbstractMetaDataReturn the Entry name for the metadata file- Specified by:
getZipEntryNamein classAbstractMetaData- Returns:
- Zip Entry name
-
getMetaDataVersion
Description copied from class:AbstractMetaDataReturn the version of the metadata structure- Specified by:
getMetaDataVersionin classAbstractMetaData- Returns:
- version
-
addElements
Add elements specific to a ModuleMetaData- Specified by:
addElementsin classAbstractMetaData- Parameters:
doc- Documentroot- Root element
-
read
-