public class TreeSelector extends Object
volpattern[:treepattern[keyfilter],...where volpattern and treepattern are pattern strings that use "*" and "?" as multi-character and single-character wild-cards. (Alternatively, if the
regex flag is set, these are true regular
expressions.) Example:
v1:*index*{"a"-"f"},*data/*
selects all trees in volume named "v1" having names containing the substring
"index", and all tress in all values having names that end with "data". For
trees selected in volume v1, there is a keyfilter that specifies keys
starting with letters 'a' through 'f'.
The parseSelector(String, boolean, char) method takes a quote
character, normally '\\', that may be used to quote the meta characters in
patterns, commas and colons.| Constructor and Description |
|---|
TreeSelector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelectAll() |
boolean |
isSelected(Tree tree) |
boolean |
isSelected(Volume volume) |
boolean |
isTreeNameSelected(String volumeName,
String treeName) |
boolean |
isVolumeNameSelected(String volumeName) |
boolean |
isVolumeOnlySelection(String volumeName) |
KeyFilter |
keyFilter(String volumeName,
String treeName) |
static TreeSelector |
parseSelector(String spec,
boolean regex,
char quote)
Create a
TreeSelector based on the supplied parameters. |
int |
size() |
String |
toString() |
public static TreeSelector parseSelector(String spec, boolean regex, char quote)
TreeSelector based on the supplied parameters.spec - The specification stringregex - true if the specification string is a Regex
expression, false if it simply uses '*' and '?'
as wildcardsquote - meta-character to quote the next character, typically '\'TreeSelectorpublic boolean isSelectAll()
public int size()
public boolean isSelected(Volume volume)
public boolean isSelected(Tree tree)
public boolean isVolumeNameSelected(String volumeName)
public boolean isVolumeOnlySelection(String volumeName)
Copyright © 2025 Open Identity Platform Community. All rights reserved.