Class ComponentPathBuilder
java.lang.Object
VASSAL.tools.ComponentPathBuilder
Provides an XPath-like syntax for identifying configuration components
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId(Configurable[] targetPath) Return a string identifying the specifiedConfigurablecomponents as a path through the configuration parent-child hierarchy.static ComponentPathBuilderReturn a list ofConfigurablecomponents specified by the given identifier.
-
Constructor Details
-
ComponentPathBuilder
public ComponentPathBuilder()
-
-
Method Details
-
getInstance
-
getId
Return a string identifying the specifiedConfigurablecomponents as a path through the configuration parent-child hierarchy.- Parameters:
targetPath- configurable path- Returns:
- string path
-
getPath
Return a list ofConfigurablecomponents specified by the given identifier.- Parameters:
id- identifier- Returns:
- list of components
- Throws:
ComponentPathBuilder.PathFormatException- if no such component exists
-