dk.brics.relaxng.converter
Class SchemaReducer
java.lang.Object
dk.brics.relaxng.converter.SchemaReducer
public class SchemaReducer
- extends Object
Reducer for Restricted RELAX NG schemas.
This removes attribute
/element
patterns with empty name classes,
empty
patterns in group
/interleave
,
notAllowed
patterns (except the start pattern and defined patterns),
and data
patterns with empty languages.
Also, it simplifies choice
/group
/interleave
patterns with only one child
and converts patterns that only have infinite unfoldings to notAllowed
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaReducer
public SchemaReducer(NameClass2Automaton ncconv,
Data2Automaton dataconv)
- Constructs a new reducer.
- Parameters:
ncconv
- name class converter, if null then skip name class checksdataconv
- data pattern converter, if null then skip data pattern check
reduce
public void reduce(Grammar g)
- Reduces the given grammar.
- Parameters:
g
- grammar
Copyright © 2005-2010 Anders Møller.