Package VASSAL.build.module
Class ExtensionElement
java.lang.Object
VASSAL.build.module.ExtensionElement
- All Implemented Interfaces:
Buildable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a child component.void
Adds this component to its parent.void
Build the object from the XML representation of the BuildablegetBuildElement(Document doc)
-
Field Details
-
TARGET
An identifier for the component to be extended- See Also:
- Constant Field Values
-
-
Constructor Details
-
ExtensionElement
public ExtensionElement() -
ExtensionElement
-
-
Method Details
-
add
Description copied from interface:Buildable
Adds a child component. Both this method andBuildable.addTo(VASSAL.build.Buildable)
are invoked when adding a child to a parent -
build
Description copied from interface:Buildable
Build the object from the XML representation of the Buildable -
getExtension
-
getTargetPath
-
getBuildElement
- Specified by:
getBuildElement
in interfaceBuildable
- Parameters:
doc
- XML file- Returns:
- an XML element from which this component can be built
-
addTo
Description copied from interface:Buildable
Adds this component to its parent. In order to make Buildable objects extensible, the child is responsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.
-