cz.cuni.mff.ksi.jinfer.basicigg.dtd
Class DTD2RETranslator
java.lang.Object
cz.cuni.mff.ksi.jinfer.basicigg.dtd.DTD2RETranslator
public final class DTD2RETranslator
- extends Object
Helper class for translation from the DTD parser library data structures
to jInfer's regexp data structures.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
particle2Regexp
public static Regexp<AbstractStructuralNode> particle2Regexp(org.xmlmiddleware.schemas.dtds.Particle p,
boolean simpleData)
- Translates the specified particle into jInfer-style regexp.
- Parameters:
p
- Particle to be translated.simpleData
- Flag specifying, whether the resulting regexp should
contain a simple data token - something that cannot be determined from
the particle alone.
- Returns:
- Regular expression representing the specified particle. If the
particle is
null
, the result will be either lambda (if
simpleData is false
) or a concatenation with a single
simple data token (otherwise).
Generated on Fri Dec 9 00:01:25 CET 2011