| 1 |
package com.thaiopensource.validate.rng.impl; |
| 2 |
|
| 3 |
import com.thaiopensource.relaxng.sax.PatternValidator; |
| 4 |
import com.thaiopensource.relaxng.pattern.Pattern; |
| 5 |
import com.thaiopensource.relaxng.pattern.ValidatorPatternBuilder; |
| 6 |
import com.thaiopensource.validate.Validator; |
| 7 |
import org.xml.sax.ErrorHandler; |
| 8 |
import org.xml.sax.ContentHandler; |
| 9 |
import org.xml.sax.DTDHandler; |
| 10 |
|
| 11 |
public class RngValidator extends PatternValidator implements Validator { |
| 12 |
public RngValidator(Pattern pattern, ValidatorPatternBuilder builder, ErrorHandler eh) { |
| 13 |
super(pattern, builder, eh); |
| 14 |
} |
| 15 |
|
| 16 |
public ContentHandler getContentHandler() { |
| 17 |
return this; |
| 18 |
} |
| 19 |
|
| 20 |
public DTDHandler getDTDHandler() { |
| 21 |
return this; |
| 22 |
} |
| 23 |
|
| 24 |
public void reset() { |
| 25 |
super.reset(); |
| 26 |
} |
| 27 |
} |