Package VASSAL.build.module
Class ExtensionElement
java.lang.Object
VASSAL.build.module.ExtensionElement
- All Implemented Interfaces:
Buildable
public class ExtensionElement extends Object implements Buildable
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExtensionElement()
ExtensionElement(Buildable extension, Configurable[] targetPath)
-
Method Summary
Modifier and Type Method Description void
add(Buildable child)
Adds a child component.void
addTo(Buildable parent)
Adds this component to its parent.void
build(Element e)
Build the objectElement
getBuildElement(Document doc)
Buildable
getExtension()
Configurable[]
getTargetPath()
-
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 -
getExtension
-
getTargetPath
-
getBuildElement
- Specified by:
getBuildElement
in interfaceBuildable
- 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 reponsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.
-