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