public class Target extends Object
Constructor and Description |
---|
Target()
Constructs a
Target with no start node. |
Target(boolean inScopeOnly) |
Target(Context context) |
Target(List<StructuralNode> startNodes) |
Target(SiteNode startNode) |
Target(SiteNode startNode,
boolean recurse) |
Target(SiteNode startNode,
Context context,
boolean inScopeOnly,
boolean recurse) |
Target(SiteNode startNode,
Context context,
boolean inScopeOnly,
int maxChildren,
int maxDepth)
Constructs a
Target with the given data. |
Target(StructuralNode startNode) |
Modifier and Type | Method and Description |
---|---|
Context |
getContext() |
String |
getDisplayName() |
int |
getMaxChildren() |
int |
getMaxDepth() |
SiteNode |
getStartNode() |
List<StructuralNode> |
getStartNodes() |
boolean |
isInScopeOnly() |
boolean |
isRecurse() |
boolean |
isValid() |
void |
setContext(Context context) |
void |
setInScopeOnly(boolean inScopeOnly) |
void |
setMaxChildren(int maxChildren) |
void |
setMaxDepth(int maxDepth) |
void |
setRecurse(boolean recurse) |
void |
setStartNode(SiteNode startNode)
Sets the given node as the start node.
|
void |
setStartNode(StructuralNode startNode)
Sets the given node as the start node.
|
public Target()
Target
with no start node.setStartNode(StructuralNode)
public Target(boolean inScopeOnly)
public Target(StructuralNode startNode)
public Target(List<StructuralNode> startNodes)
public Target(SiteNode startNode)
public Target(SiteNode startNode, boolean recurse)
public Target(Context context)
public Target(SiteNode startNode, Context context, boolean inScopeOnly, int maxChildren, int maxDepth)
Target
with the given data.
One or both startNode and context should be specified. If both a used then the startNode should belong to the context. Note that nodes can belong to multiple contexts.
startNode
- the starting nodecontext
- the contextinScopeOnly
- true
to only scan nodes that are in scope (only relevant if
context not specified), false
otherwisemaxChildren
- maximum number of child nodes to scanmaxDepth
- maximum depth to scanpublic boolean isValid()
public SiteNode getStartNode()
public Context getContext()
public boolean isInScopeOnly()
public int getMaxChildren()
public int getMaxDepth()
public void setStartNode(SiteNode startNode)
Start nodes previously set are discarded.
Note: The call to this method as no effect if the node is null
.
startNode
- the start node.public void setStartNode(StructuralNode startNode)
Start nodes previously set are discarded.
startNode
- the start node.public void setContext(Context context)
public List<StructuralNode> getStartNodes()
public void setInScopeOnly(boolean inScopeOnly)
public void setMaxChildren(int maxChildren)
public void setMaxDepth(int maxDepth)
public boolean isRecurse()
public void setRecurse(boolean recurse)
public String getDisplayName()