|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.strings.CharacterPathBuilder.CharacterPath
public static class CharacterPathBuilder.CharacterPath
A CharacterPathBuilder.CharacterPath represents a path of characters. A path can have multiple junctions so a CharacterPathBuilder.CharacterPath can
represent a Set of multiple Strings
| Constructor Summary | |
|---|---|
CharacterPathBuilder.CharacterPath(Character character,
List<CharacterPathBuilder.CharacterPath> characterPathChildrenList,
boolean leaf)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterPathBuilder.CharacterPath(Character character,
List<CharacterPathBuilder.CharacterPath> characterPathChildrenList,
boolean leaf)
| Method Detail |
|---|
public String determineFirstCharactersOfChildrenAsString()
CharacterPathBuilder.CharacterPath as a concatenated String
public Character getCharacter()
public List<CharacterPathBuilder.CharacterPath> getCharacterPathChildrenList()
public CharacterPathBuilder.CharacterPath matchingPath(String relativePath)
CharacterPathBuilder.CharacterPath which matches the last character of the given relative path to the current
CharacterPathBuilder.CharacterPath. The beginning of the relative path has to match the currents getCharacter().
relativePath -
public List<String> buildStringList()
String combinations of the current CharacterPathBuilder.CharacterPath and all descending CharacterPathBuilder.CharacterPath
instances related to the first one.
public boolean hasNoChildren()
CharacterPathBuilder.CharacterPath has no children
public String toString()
toString in class Objectpublic boolean isLeaf()
CharacterPathBuilder.CharacterPath represents a leaf node. This does not mean that there are no further
children.
public boolean isRoot()
CharacterPathBuilder.CharacterPath is the root node and returns null for the getCharacter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||