jInfer

cz.cuni.mff.ksi.jinfer.functionalDependencies.interfaces
Interface Repair

All Known Implementing Classes:
RepairCandidate, RepairImpl

public interface Repair

Interface representing Repair.


Method Summary
 void addUnreliableNode(Node node)
          Add node that will be marked as unreliable by this repair.
 void addUnreliableNodes(Set<Node> nodes)
          Add set of nodes that will be marked as unreliable by this repair.
 void addValueNode(Node node, NodeValue value)
          Add node and the new node value to this repair.
 Node getUnreliableNode()
          Get the root node which was marked as unreliable by this repair.
 Set<Node> getUnreliableNodes()
          Get set of all nodes marked as unreliable by this repair.
 Map<Node,NodeValue> getValueNodes()
          Get map of all nodes and theirs new values that have been modified by this repair.
 boolean hasReliabilityRepair()
          Check if this repair contains reliability modification of the XML tree node.
 boolean hasValueRepair()
          Check ig this repair contains value modification of the XML tree node.
 boolean isNewValue(Node node)
          Check if provided node value is modified to the newly generated one/
 

Method Detail

hasReliabilityRepair

boolean hasReliabilityRepair()
Check if this repair contains reliability modification of the XML tree node.

Returns:
true if contains reliability modification.

hasValueRepair

boolean hasValueRepair()
Check ig this repair contains value modification of the XML tree node.

Returns:
true if contains value modification.

getUnreliableNode

Node getUnreliableNode()
Get the root node which was marked as unreliable by this repair. If this repair is not a reliability repair, null is returned.

Returns:
The root node which is marked as unreliable.

getUnreliableNodes

Set<Node> getUnreliableNodes()
Get set of all nodes marked as unreliable by this repair. If this repair is not a reliability repair, empty set is returned.

Returns:
Set of all nodes marked as unreliable.

getValueNodes

Map<Node,NodeValue> getValueNodes()
Get map of all nodes and theirs new values that have been modified by this repair. If this repair is not a value repair, empty map is returned.

Returns:
Map of all nodes and theirs new values.

addUnreliableNode

void addUnreliableNode(Node node)
Add node that will be marked as unreliable by this repair.

Parameters:
node - Node to be marked as unreliable.

addUnreliableNodes

void addUnreliableNodes(Set<Node> nodes)
Add set of nodes that will be marked as unreliable by this repair.

Parameters:
nodes - Set of nodes to be marked as unreliable.

addValueNode

void addValueNode(Node node,
                  NodeValue value)
Add node and the new node value to this repair.

Parameters:
node - Node to be changed by this repair.
value - New value of the changed node.

isNewValue

boolean isNewValue(Node node)
Check if provided node value is modified to the newly generated one/

Parameters:
node - Node to be checked if its new value is generated.
Returns:
true if node has newly generated value.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011