Class ComponentPathBuilder
java.lang.Object
VASSAL.tools.ComponentPathBuilder
Provides an XPath-like syntax for identifying configuration components
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId
(Configurable[] targetPath) Return a string identifying the specifiedConfigurable
components as a path through the configuration parent-child hierarchy.static ComponentPathBuilder
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 path through the configuration parent-child hierarchy.- Parameters:
targetPath
- configurable path- Returns:
- string path
-
getPath
Return a list ofConfigurable
components specified by the given identifier.- Parameters:
id
- identifier- Returns:
- list of components
- Throws:
ComponentPathBuilder.PathFormatException
- if no such component exists
-