Class SearchPathTreeHandler
java.lang.Object
org.sentrysoftware.xflat.handlers.SearchPathTreeHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchPathNode
Build a search path tree node with a properties list and a root tag.
-
Method Details
-
build
public static SearchPathNode build(List<String> propertiesPathList, String rootTag) throws XFlatException Build a search path tree node with a properties list and a root tag.
Example:
properties: "E" "B>B1" "B>B2" "B/C/D" rootPath="A"
==>
root_tree +-> element_A +-> property_E +-> element_B +-> property_attribute_B1 +-> property_attribute_B2 +-> element_C +-> property_D
- Parameters:
propertiesPathList
- A string list containing the paths to properties to retrieve. (mandatory)rootTag
- A string containing the XML tags path to the first element to convert. example: /rootTag/tag2 (Mandatory)- Returns:
- The first node of the search path tree
- Throws:
XFlatException
- for errors in the search path tree build
-