DeclHandler


DeclHandler org.xml.sax.ext

Java 1.4

This extension interface defines methods that a SAX parser can call to notify an application about element, attribute, and entity declarations in a DTD. If your application requires this information about a DTD, then pass an object that implements this interface to the setProperty( ) method of an XMLReader , using the property name "http://www.xml.org/sax/properties/declaration-handler". Because this is an extension handler, SAX parsers are not required to support it, and may throw a SAXNotRecognizedException or a SAXNotSupportedException when you attempt to register a DeclHandler .

 public interface  DeclHandler  {  // Public Instance Methods  void  attributeDecl  (String  eName  , String  aName  , String  type  ,          String  mode  , String  value  ) throws org.xml.sax.SAXException;        void  elementDecl  (String  name  , String  model  )          throws org.xml.sax.SAXException;        void  externalEntityDecl  (String  name  , String  publicId  ,          String  systemId  ) throws org.xml.sax.SAXException;        void  internalEntityDecl  (String  name  , String  value  )          throws org.xml.sax.SAXException;   } 

Implementations

DefaultHandler2



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net