public class TranslationNode extends PathNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
STATE_MISSING_TRANSLATION, STATE_NON_WELLFORMED, STATE_NON_WELLFORMED_ARG_COUNT, STATE_NON_WELLFORMED_ARG_FORMAT, STATE_NON_WELLFORMED_PUNCTUATION_END, STATE_OK
Constructor and Description |
---|
TranslationNode(String string,
File file)
Create Tree
|
Modifier and Type | Method and Description |
---|---|
TreeNode |
getChildAfter(TreeNode child) |
TreeNode |
getChildAt(int index) |
TreeNode |
getChildBefore(TreeNode child) |
int |
getChildCount() |
int |
getIndex(TreeNode child) |
int |
getMatchCount()
Returns the total number of matches in all sub nodes.
|
boolean |
isLeaf() |
boolean |
matches()
Returns true if the node (or any sub node) matches the filter.
|
void |
setFilter(Locale locale,
String filter)
Sets a new filter.
|
insert, save, translationStateFor
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
public boolean isLeaf()
public int getMatchCount()
FilterNodeIf
getMatchCount
in interface FilterNodeIf
getMatchCount
in class PathNode
public boolean matches()
FilterNodeIf
matches
in interface FilterNodeIf
matches
in class PathNode
public void setFilter(Locale locale, String filter)
FilterNodeIf
setFilter
in interface FilterNodeIf
setFilter
in class PathNode
locale
- - the local to check.filter
- - the filter value to check for.public int getChildCount()
getChildCount
in interface TreeNode
getChildCount
in class PathNode
public TreeNode getChildAt(int index)
getChildAt
in interface TreeNode
getChildAt
in class PathNode
public int getIndex(TreeNode child)
public TreeNode getChildAfter(TreeNode child)
getChildAfter
in class PathNode
public TreeNode getChildBefore(TreeNode child)
getChildBefore
in class PathNode
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)