dk.brics.xmlgraph.validator
Class TypeIsomorphChecker

java.lang.Object
  extended by dk.brics.xmlgraph.validator.TypeIsomorphChecker

public class TypeIsomorphChecker
extends Object

Checker for top-level isomorphism.


Constructor Summary
TypeIsomorphChecker(XMLGraph xg1, XMLGraph xg2)
          Constructs a new checker.
 
Method Summary
 boolean isIsomorphic(Node n1, Node n2, boolean attribute_mode)
          Checks whether n1 and n2 are top-level isomorphic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeIsomorphChecker

public TypeIsomorphChecker(XMLGraph xg1,
                           XMLGraph xg2)
Constructs a new checker.

Parameters:
xg1 - first XML graph
xg2 - second XML graph
Method Detail

isIsomorphic

public boolean isIsomorphic(Node n1,
                            Node n2,
                            boolean attribute_mode)
Checks whether n1 and n2 are top-level isomorphic.

Parameters:
n1 - node from the first XML graph
n2 - node from the second XML graph
attribute_mode - if true, consider attributes and ignore elements (otherwise, the opposite)
Returns:
true if n1 and n2 are top-level isomorphic


Copyright © 2005-2010 Anders Møller.