dk.brics.xmlgraph.converter
Class RepetitionFixer

java.lang.Object
  extended by dk.brics.xmlgraph.converter.RepetitionFixer

public class RepetitionFixer
extends Object

Repetition fixer. Converts certain OneOrMore nodes to zero-or-more.


Field Summary
static String[] common_element_names
          Common element names to fix.
 
Constructor Summary
RepetitionFixer(String[] element_names)
          Constructs a new repetition fixer for the given element names.
 
Method Summary
 void fix(XMLGraph xg)
          Fixes the given XML graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

common_element_names

public static final String[] common_element_names
Common element names to fix.

Constructor Detail

RepetitionFixer

public RepetitionFixer(String[] element_names)
Constructs a new repetition fixer for the given element names.

Parameters:
element_names - element names
Method Detail

fix

public void fix(XMLGraph xg)
Fixes the given XML graph.

Parameters:
xg - XML graph


Copyright © 2005-2010 Anders Møller.