public class NodeCentricOptimizationResultsImpl<N extends QueryNode> extends ProposalResultsImpl implements NodeCentricOptimizationResults<N>
| Constructor and Description |
|---|
NodeCentricOptimizationResultsImpl(IntermediateQuery query,
N newNode) |
NodeCentricOptimizationResultsImpl(IntermediateQuery query,
Optional<QueryNode> optionalReplacingChild)
The replacing child IS NOT OPTIONAL (Optional is here just to avoid confusion with other constructors).
|
NodeCentricOptimizationResultsImpl(IntermediateQuery query,
Optional<QueryNode> optionalNextSibling,
Optional<QueryNode> optionalClosestAncestor)
When the focus node has been removed and not declared as being replaced by its first child.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<QueryNode> |
getNewNodeOrReplacingChild() |
Optional<QueryNode> |
getOptionalClosestAncestor()
Is usually the parent but may be another ancestor in
case of delete cascading.
|
Optional<N> |
getOptionalNewNode()
TODO: explain
|
Optional<QueryNode> |
getOptionalNextSibling()
Is or was (if the node has been deleted) a sibling.
|
Optional<QueryNode> |
getOptionalReplacingChild()
When the focus node is officially replaced by one
of its children
|
public NodeCentricOptimizationResultsImpl(IntermediateQuery query, N newNode)
public NodeCentricOptimizationResultsImpl(IntermediateQuery query, Optional<QueryNode> optionalNextSibling, Optional<QueryNode> optionalClosestAncestor)
public NodeCentricOptimizationResultsImpl(IntermediateQuery query, Optional<QueryNode> optionalReplacingChild)
public Optional<N> getOptionalNewNode()
NodeCentricOptimizationResultsgetOptionalNewNode in interface NodeCentricOptimizationResults<N extends QueryNode>public Optional<QueryNode> getOptionalNextSibling()
getOptionalNextSibling in interface NodeCentricOptimizationResults<N extends QueryNode>public Optional<QueryNode> getOptionalClosestAncestor()
getOptionalClosestAncestor in interface NodeCentricOptimizationResults<N extends QueryNode>public Optional<QueryNode> getOptionalReplacingChild()
NodeCentricOptimizationResultsgetOptionalReplacingChild in interface NodeCentricOptimizationResults<N extends QueryNode>public Optional<QueryNode> getNewNodeOrReplacingChild()
getNewNodeOrReplacingChild in interface NodeCentricOptimizationResults<N extends QueryNode>Copyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.