Você está na página 1de 2

org.xml.sax.helpers.

LocatorImpl pushContext
HELPER CLASSES implements org.xml.sax.Locator Start a new Namespace context.
Provide an optional convenience implementation of Locator with void pushContext()
org.xml.sax.helpers.AttributesImpl additional methods as follows.
reset
implements org.xml.sax.Attributes
setColumnNumber
Default implementation of the Attributes interface with the following Reset this Namespace support object for reuse.
additional methods. Set the column number for this locator (1-based). void reset()
void setColumnNumber(int columnNumber)
AttributesImpl org.xml.sax.helpers.ParserAdapter
setLineNumber implements org.xml.sax.DocumentHandler (SAX 1)
Construct a new, empty AttributesImpl object.
Set the line number for this locator (1-based). implements org.xml.sax.XMLReader
AttributesImpl()
Copy an existing Attributes object. void setLineNumber(int lineNumber) Adapt a SAX1 Parser as a SAX2 org.xml.sax.XMLReader.
AttributesImpl(Attributes atts) setPublicId org.xml.sax.helpers.XMLFilterImpl
addAttribute implements org.xml.sax.ContentHandler
Set the public identifier for this locator. implements org.xml.sax.DTDHandler
Add an attribute to the end of the list. void setPublicId(java.lang.String publicId) implements org.xml.sax.EntityResolver
void addAttribute(String uri, setSystemId implements org.xml.sax.ErrorHandler
String localName, String qName, implements org.xml.sax.XMLFilter
String type, String value) Set the system identifier for this locator. implements org.xml.sax.XMLReader
void setSystemId(java.lang.String systemId) Base class for deriving an XML filter.
clear
org.xml.sax.helpers.NamespaceSupport XMLFilterImpl
Clear the attribute list for reuse.
void clear() Encapsulate Namespace logic for use by applications using SAX, or Construct an empty XML filter, with no parent.
internally by SAX drivers. XMLFilterImpl()
removeAttribute
XMLNS Construct an XML filter with the specified parent.
Remove an attribute from the list. XMLFilterImpl(XMLReader parent)
void removeAttribute(int index) The XML Namespace as a constant.
static String XMLNS org.xml.sax.helpers.XMLReaderAdapter
setAttribute implements org.xml.sax.ContentHandler
NamespaceSupport implements org.xml.sax.Parser (SAX 1)
Set an attribute in the list.
void setAttribute(int index, String uri, Create a new Namespace support object. Adapt a SAX2 org.xml.sax.XMLReader as a SAX1 Parser.
String localName, String qName, NamespaceSupport() org.xml.sax.helpers.XMLReaderFactory
String type, String value) declarePrefix Factory for creating an org.xml.sax.XMLReader.
setAttributes
Declare a Namespace prefix. createXMLReader
Copy an entire Attributes object. boolean declarePrefix(String prefix, String uri)
void setAttributes(Attributes atts) Attempt to create an XMLReader from system defaults
getDeclaredPrefixes static XMLReader createXMLReader()
setLocalName Attempt to create an XMLReader from a class name.
Return an enumeration of all prefixes declared in this context.
Set the local name of a specific attribute. java.util.Enumeration getDeclaredPrefixes() static XMLReader createXMLReader(String className)
void setLocalName(int index, String localName) getPrefix EXTENSION INTERFACES
setQName
Return one of the prefixes mapped to a Namespace URI.
Set the qualified name of a specific attribute. String getPrefix(String uri) org.xml.sax.ext.Attributes2
void setQName(int index, String qName) getPrefixes extends org.xml.sax.Attributes
setType SAX2 extension to augment the per-attribute information provided though
Return an enumeration of all prefixes currently declared. org.xml.sax.Attributes
Set the type of a specific attribute. java.util.Enumeration getPrefixes()
void setType(int index, String type) Return an enumeration of all prefixes currently declared for a URI. isSpecified
java.util.Enumeration getPrefixes(String uri) Returns true unless the attribute value was provided by DTD defaulting.
setURI
getURI boolean isSpecified(int attIndex)
Set the Namespace URI of a specific attribute. Returns true unless the attribute value was provided by DTD defaulting.
void setURI(int index, String uri) Look up a prefix and get the currently-mapped Namespace URI. boolean isSpecified(String qName)
String getURI(String prefix)
setValue Returns true unless the attribute value was provided by DTD defaulting.
popContext boolean isSpecified(String namespaceURI,String localName)
Set the value of a specific attribute.
void setValue(int index, String value) Revert to the previous Namespace context. org.xml.sax.ext.DeclHandler
void popContext() SAX2 extension handler for DTD declaration events.
org.xml.sax.helpers.DefaultHandler
implements org.xml.sax.ContentHandler processName attributeDecl
implements org.xml.sax.DTDHandler
implements org.xml.sax.EntityResolver
Process a raw XML 1.0 name. Report an attribute type declaration.
implements org.xml.sax.ErrorHandler
String[] processName(String qName, void attributeDecl(String elementName,
String[] parts, String attributeName,
Default base class for SAX2 event handlers.
boolean isAttribute) String attributeType,
DefaultHandler String attributeMode,
DefaultHandler() String defaultValue)
elementDecl org.xml.sax.ext.Locator2
Report an element type declaration. extends org.xml.sax.Locator
void elementDecl(String name, String model) SAX2 extension to augment the entity information provided though
org.xml.sax.Locator
externalEntityDecl
getEncoding
Report a parsed external entity declaration.
void externalEntityDecl(String name, Returns the name of the character encoding for the entity.
String publicId, String systemId) String getEncoding()

internalEntityDecl getXMLVersion

Report an internal entity declaration.


void internalEntityDecl(String name, String value)
Returns the version of XML used for the entity.
String getXMLVersion()
Quick Reference
org.xml.sax.ext.EntityResolver2 EXTENSION CLASSES
extends org.xml.sax.EntityResolver
Extended interface for mapping external entity references to input sources,
or providing a missing external subset.
org.xml.sax.ext.Attributes2Impl
extends org.xml.sax.AttributesImpl Simple API for XML (SAX)
getExternalSubset
implements org.xml.sax.ext.Attributes2
SAX2 extension helper implementing the Attributes2 interface.
Extensions and Helpers
Version 2 for Java
Allows applications to provide an external subset for documents that don't Attributes2Impl
explicitly define one. Attributes2Impl()
InputSource getExternalSubset(String name,
Copy an existing Attributes or Attributes2 object.
String baseURI)
Attributes2Impl(Attributes atts) 5 May 2000
resolveEntity
setSpecified
Allows applications to map references to external entities into input
Assign a value to the "specified" flag of a specific attribute.
sources, or tell the parser it should use conventional URI resolution. void setSpecified(int index, boolean value) http://www.saxproject.org/
InputSource resolveEntity(String name,
String publicId, org.xml.sax.ext.DefaultHandler2
String baseURI, extends org.xml.sax.DefaultHandler The interfaces outlined below are taken from the org.xml.sax.helpers and
String systemId) implements org.xml.sax.ext.DeclHandler
implements org.xml.sax.ext.EntityResolver2
org.xml.sax.ext packages. The latter is a companion package for SAX 2.0
org.xml.sax.ext.LexicalHandler implements org.xml.sax.ext.LexicalHandler which SAX drivers won't necessarily support. This quick reference does
SAX2 extension handler for lexical events. This class extends the SAX2 base handler class to support the SAX2 not include deprecated features.
comment LexicalHandler, DeclHandler, and EntityResolver2 extensions
DefaultHandler2 Table of Contents:
Report an XML comment anywhere in the document.
void comment(char[] characters, int start, int len) DefaultHandler2()
endCDATA resolveEntity Helper Classes Extension Interfaces
Report the end of a CDATA section. · AttributesImpl · Attributes2
Invokes EntityResolver2.resolveEntity() with null entity name and URI.
void endCDATA() InputSource resolveEntity(String publicId, · DefaultHandler · DeclHandler
String systemId) · LocatorImpl · EntityResolver2
endDTD
org.xml.sax.ext.Locator2Impl · NamespaceSupport · LexicalHandler
Report the end of DTD declarations.
extends org.xml.sax.LocatorImpl
· ParserAdapter · Locator2
void endDTD()
implements org.xml.sax.ext.Locator2 · XMLFilterImpl
endEntity SAX2 extension helper for holding additional Entity information, · XMLReaderAdapter Extension Classes
Report the end of an entity. implementing the Locator2 interface. · XMLReaderFactory · Attributes2Impl
void endEntity(String name) Locator2Impl · DefaultHandler2
startCDATA · Locator2Impl
Locator2Impl()
Report the start of a CDATA section. Copy an existing Locator or Locator2 object.
void startCDATA() Locator2Impl(Locator locator)

startDTD setEncoding

Report the start of DTD declarations, if any. Assigns the current value of the encoding property.
void setEncoding(java.lang.String encoding)
deepX Ltd.
void startDTD(String name,
String publicId, String systemId) setXMLVersion Dublin, Ireland
startEntity Assigns the current value of the version property.
Report the beginning of some internal and external XML entities. void setXMLVersion(java.lang.String version) info@deepX.com
void startEntity(String name) http://www.deepX.com/

Você também pode gostar