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 voidadd(Buildable child)Adds a child component.voidaddTo(Buildable parent)Adds this component to its parent.voidbuild(Element e)Build the objectElementgetBuildElement(Document doc)BuildablegetExtension()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:BuildableAdds 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:BuildableBuild the object -
getExtension
-
getTargetPath
-
getBuildElement
- Specified by:
getBuildElementin interfaceBuildable- Returns:
- an XML element from which this component can be built
-
addTo
Description copied from interface:BuildableAdds 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.
-