|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.xml.cookies.ValidateXMLSupport
public class ValidateXMLSupport
ValidateXMLCookie
implementation support simplifing cookie
providers based on InputSource
s representing XML documents
and entities.
Primary use case in a DataObject subclass (which primary file is XML):
CookieSet cookies = getCookieSet(); InputSource in = DataObjectAdapters.inputSource(this); ValidateXMLSupport cookieImpl = new ValidateXMLSupport(in); cookies.add(cookieImpl);
Secondary use case: Subclasses can customize the class by customization protected methods. The customized subclass can be used according to primary use case.
Constructor Summary | |
---|---|
ValidateXMLSupport(InputSource inputSource)
Create new ValidateXMLSupport for given data object. |
Method Summary | |
---|---|
protected EntityResolver |
createEntityResolver()
Parametrizes default parser creatin process. |
protected InputSource |
createInputSource()
Create InputSource to be checked. |
protected XMLReader |
createParser(boolean validate)
Create and preconfigure new parser. |
boolean |
validateXML(CookieObserver l)
Validate XML document entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateXMLSupport(InputSource inputSource)
inputSource
- Supported InputSource.Method Detail |
---|
public boolean validateXML(CookieObserver l)
ValidateXMLCookie
validateXML
in interface ValidateXMLCookie
l
- Optional listener (null
allowed)
giving judgement details via XMLProcessorDetail
s.
protected EntityResolver createEntityResolver()
null
protected InputSource createInputSource() throws IOException
null
IOException
- if I/O error occurs.protected XMLReader createParser(boolean validate)
validate
- true if validation module is required
null
createEntityResolver()
|
org.netbeans.api.xml/1 1.14 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |