public class FragmentBuilder extends Object
| Constructor and Description |
|---|
FragmentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BusinessTransaction |
getBusinessTransaction() |
Node |
getCurrentNode()
This method returns the current node providing the scope
for further levels of detail.
|
List<String> |
getUnlinkedIds()
This method returns the 'unlinked ids' list.
|
boolean |
isComplete()
This method determines if the fragment is complete.
|
boolean |
isSuppressed()
This method returns whether the fragment is in suppression
mode.
|
protected boolean |
nodeMatches(Node node,
Class<? extends Node> cls,
String uri)
This method determines whether the supplied node matches the specified class
and optional URI.
|
Node |
popNode(Class<? extends Node> cls,
String uri)
This method pops the latest node from the business transaction
fragment hierarchy.
|
protected Node |
popNode(Stack<Node> stack,
Class<? extends Node> cls,
String uri)
This method pops a node of the defined class and optional uri from the stack.
|
void |
pushNode(Node node)
This method pushes a new node into the business transaction
fragment hierarchy.
|
void |
releaseNode(String id)
This method indicates that the identified node, for this thread of execution, should
be released.
|
void |
retainNode(String id)
This method indicates that the current node, for this thread of execution, should
be retained temporarily pending further changes.
|
Node |
retrieveNode(String id)
This method returns the node associated, for this thread of execution, identified
by the supplied id.
|
void |
suppress()
This method initiates suppression of any child node.
|
String |
toString() |
public boolean isComplete()
public BusinessTransaction getBusinessTransaction()
public Node getCurrentNode()
public void pushNode(Node node)
node - The new nodepublic Node popNode(Class<? extends Node> cls, String uri)
cls - The type of node to popuri - The optional uri to matchprotected Node popNode(Stack<Node> stack, Class<? extends Node> cls, String uri)
stack - The stackcls - The node typeuri - The optional uri to matchprotected boolean nodeMatches(Node node, Class<? extends Node> cls, String uri)
node - The nodecls - The classuri - The optional URIpublic void retainNode(String id)
id - The identifier used to later on to identify the nodepublic void releaseNode(String id)
id - The identifier used to identify the nodepublic Node retrieveNode(String id)
id - The identifier used to identify the nodepublic List<String> getUnlinkedIds()
public void suppress()
public boolean isSuppressed()
Copyright © 2015 Red Hat, Inc.. All rights reserved.