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 classComponentPathBuilder.PathFormatException -
Constructor Summary
Constructors Constructor Description ComponentPathBuilder() -
Method Summary
Modifier and Type Method Description StringgetId(Configurable[] targetPath)Return a string identifying the specifiedConfigurablecomponents as a paththrough the configuration parent-child hierarchy.static ComponentPathBuildergetInstance()Configurable[]getPath(String id)Return 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 paththrough the configuration parent-child hierarchy.- Parameters:
targetPath-- Returns:
-
getPath
Return a list ofConfigurablecomponents specified by the given identifier.- Parameters:
id-- Returns:
- Throws:
ComponentPathBuilder.PathFormatException- if no such component exists
-