dk.brics.xmlgraph.validator
Class TypeIsomorphChecker
java.lang.Object
dk.brics.xmlgraph.validator.TypeIsomorphChecker
public class TypeIsomorphChecker
- extends Object
Checker for top-level isomorphism.
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 |
TypeIsomorphChecker
public TypeIsomorphChecker(XMLGraph xg1,
XMLGraph xg2)
- Constructs a new checker.
- Parameters:
xg1
- first XML graphxg2
- second XML graph
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 graphn2
- node from the second XML graphattribute_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.