Package VASSAL.tools
Class ComponentPathBuilder
java.lang.Object
VASSAL.tools.ComponentPathBuilder
public class ComponentPathBuilder extends Object
Provides an XPath-like syntax for identifying configuration components
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComponentPathBuilder.PathFormatException
-
Constructor Summary
Constructors Constructor Description ComponentPathBuilder()
-
Method Summary
Modifier and Type Method Description String
getId(Configurable[] targetPath)
Return a string identifying the specifiedConfigurable
components as a paththrough the configuration parent-child hierarchy.static ComponentPathBuilder
getInstance()
Configurable[]
getPath(String id)
Return a list ofConfigurable
components specified by the given identifier.
-
Constructor Details
-
ComponentPathBuilder
public ComponentPathBuilder()
-
-
Method Details
-
getInstance
-
getId
Return a string identifying the specifiedConfigurable
components as a paththrough the configuration parent-child hierarchy.- Parameters:
targetPath
-- Returns:
-
getPath
Return a list ofConfigurable
components specified by the given identifier.- Parameters:
id
-- Returns:
- Throws:
ComponentPathBuilder.PathFormatException
- if no such component exists
-