public class CopertTree
extends java.lang.Object
Constructor and Description |
---|
CopertTree(java.lang.String levelColumn,
java.lang.String category,
SubTable subTable,
CopertSelector path,
java.util.Random random) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory() |
java.util.HashMap<java.lang.String,CopertTree> |
getChildren() |
java.lang.String |
getLevel()
Representation of the CopertTree level.
|
CopertSelector |
getPath() |
SubTable |
getSubTable() |
boolean |
isSingleLine() |
int |
lineCount() |
void |
put(java.lang.String value,
CopertTree childValue) |
CopertTree |
select()
If there is only one CopertTree child from there, returns this child.
|
CopertTree |
select(java.lang.String matcher)
Tries to find a child that match the given regular expression.
|
java.util.Collection<CopertTree> |
selectAll() |
java.util.Collection<CopertTree> |
selectAllRegExp(java.lang.String regExp)
Returns all the children associated to a key that match the given regular expression.
|
public CopertTree(java.lang.String levelColumn, java.lang.String category, SubTable subTable, CopertSelector path, java.util.Random random)
public java.lang.String getLevel()
public java.lang.String getCategory()
public CopertSelector getPath()
public CopertTree select()
public java.util.Collection<CopertTree> selectAll()
public CopertTree select(java.lang.String matcher)
matcher
- regular expression selectorpublic java.util.Collection<CopertTree> selectAllRegExp(java.lang.String regExp)
regExp
- regular expression selectorpublic void put(java.lang.String value, CopertTree childValue)
public SubTable getSubTable()
public java.util.HashMap<java.lang.String,CopertTree> getChildren()
public boolean isSingleLine()
public int lineCount()