startElement(namespaceURI,localName,qName,atts)could be replaced with the calls
startElement(namespaceURI,localName,qName) addAttributes(atts)If there are no attributes the second call can be dropped. If attributes are to be added one at a time with calls to
addAttribute(namespaceURI, localName, qName, type, value)
Modifier and Type | Field and Description |
---|---|
public static final int | |
public static final int | |
public static final int |
Modifier and Type | Method and Description |
---|---|
public void | addAttribute(String
the namespace URI of the attribute name uri, String the local name of the attribute (without prefix) localName, String the qualified name of the attribute rawName, String the attribute type typically character data (CDATA) type, String the value of the attribute value, boolean true if the added attribute is coming from an xsl:attribute element XSLAttribute)Add at attribute to the current element |
public void | |
public void | addAttribute(String
the namespace URI of the attribute name uri, String the local name of the attribute (without prefix) localName, String the qualified name of the attribute rawName, String the attribute type typically character data (CDATA) type, String the value of the attribute value)Add at attribute to the current element, not from an xsl:attribute element. |
public void | |
public void | addUniqueAttribute(String
the fully qualified attribute name. qName, String the attribute value value, int a bitwise flag flags)Add a unique attribute to the current element. |
public void | addXSLAttribute(String
the qualified attribute name (prefix:localName) qName, final String the attributes value value, final String the uri that the prefix of the qName is mapped to. uri)Add an attribute from an xsl:attribute element. |
public void | characters(String
the character data chars)This method is used to notify of a character event, but passing the data as a character String rather than the standard character array. |
public void | characters(Node
a DOM Node containing text. node)This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array. |
public void | endElement(String
the fully qualified element name. elemName)This method is used to notify that an element has ended. |
public void | |
public NamespaceMappings | Returns: NamespaceMappings an object that has the current namespace mappings in effect.This method returns an object that has the current namespace mappings in effect. |
public String | Returns: String the namespace URI associated with the element or attribute.the qualified name of an element, or attribute name, boolean true if it is an element name, false if it is an
atttribute name isElement)This method gets the prefix associated with a current element or attribute name. |
public String | Returns: String the namespace URI currently associated with the prefix.a prefix of an element or attribute. prefix)This method returns the namespace URI currently associated with the prefix. |
public String | |
public void | namespaceAfterStartElement(String
the namespace URI being declared uri, String the prefix that maps to the given namespace prefix)This method is used to notify that a prefix mapping is to start, but after an element is started. |
public void | setSourceLocator(SourceLocator
the source locator locator)This method is used to set the source locator, which might be used to generated an error message. |
public void | startElement(String
the namespace URI of the element uri, String the local name (without prefix) of the element localName, String the qualified name of the element qName)This method is used to notify that an element is starting. |
public void | startElement(String
the fully qualified name of the element qName)This method is used to notify of the start of an element |
public boolean | Returns: boolean false if the prefix mapping was already in effect (in other words we are just re-declaring), true if this is a new, never before seen mapping for the element.the prefix that maps to the given URI prefix, String the namespace URI of the given prefix uri, boolean if true this call is like the SAX
startPrefixMapping(prefix,uri) call and the mapping applies to the
element to come. If false the mapping applies to the current element. shouldFlush)This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come. |
HTML_ATTREMPTY | back to summary |
---|---|
public static final int HTML_ATTREMPTY |
HTML_ATTRURL | back to summary |
---|---|
public static final int HTML_ATTRURL |
NO_BAD_CHARS | back to summary |
---|---|
public static final int NO_BAD_CHARS |
addAttribute | back to summary |
---|---|
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException Add at attribute to the current element
|
addAttribute | back to summary |
---|---|
public void addAttribute(String qName, String value) Add an attribute to the current element. The namespace URI of the attribute will be calculated from the prefix of qName. The local name will be derived from qName and the type will be assumed to be "CDATA". |
addAttribute | back to summary |
---|---|
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException Add at attribute to the current element, not from an xsl:attribute element. |
addAttributes | back to summary |
---|---|
public void addAttributes(Attributes atts) throws SAXException Add attributes to the current element
|
addUniqueAttribute | back to summary |
---|---|
public void addUniqueAttribute(String qName, String value, int flags) throws SAXException Add a unique attribute to the current element. The attribute is guaranteed to be unique here. The serializer can write it out immediately without saving it in a table first. The integer flag contains information about the attribute, which helps the serializer to decide whether a particular processing is needed. |
addXSLAttribute | back to summary |
---|---|
public void addXSLAttribute(String qName, final String value, final String uri) Add an attribute from an xsl:attribute element. |
characters | back to summary |
---|---|
public void characters(String chars) throws SAXException This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.
|
characters | back to summary |
---|---|
public void characters(Node node) throws SAXException This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.
|
endElement | back to summary |
---|---|
public void endElement(String elemName) throws SAXException This method is used to notify that an element has ended. Unlike the standard SAX method endElement(namespaceURI,localName,qName)only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation.
|
entityReference | back to summary |
---|---|
public void entityReference(String entityName) throws SAXException Notify of an entity reference.
|
getNamespaceMappings | back to summary |
---|---|
public NamespaceMappings getNamespaceMappings() This method returns an object that has the current namespace mappings in effect.
|
getNamespaceURI | back to summary |
---|---|
public String getNamespaceURI(String name, boolean isElement) This method gets the prefix associated with a current element or attribute name. |
getNamespaceURIFromPrefix | back to summary |
---|---|
public String getNamespaceURIFromPrefix(String prefix) This method returns the namespace URI currently associated with the prefix. |
getPrefix | back to summary |
---|---|
public String getPrefix(String uri) This method returns the prefix that currently maps to the given namespace URI. |
namespaceAfterStartElement | back to summary |
---|---|
public void namespaceAfterStartElement(String uri, String prefix) throws SAXException This method is used to notify that a prefix mapping is to start, but after an element is started. The SAX method call startPrefixMapping(prefix,uri)is used just before an element starts and applies to the element to come, not to the current element. This method applies to the current element. For example one could make the calls in this order: startElement("prfx8:elem9") namespaceAfterStartElement("http://namespace8","prfx8") |
setSourceLocator | back to summary |
---|---|
public void setSourceLocator(SourceLocator locator) This method is used to set the source locator, which might be used to generated an error message.
|
startElement | back to summary |
---|---|
public void startElement(String uri, String localName, String qName) throws SAXException This method is used to notify that an element is starting. This method is just like the standard SAX method startElement(uri,localName,qname,atts)but without the attributes. |
startElement | back to summary |
---|---|
public void startElement(String qName) throws SAXException This method is used to notify of the start of an element
|
startPrefixMapping | back to summary |
---|---|
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws SAXException This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come.
|