|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.xml.sax.SAXUtils
public class SAXUtils
XML utility methods.
| Field Summary | |
|---|---|
static Attributes |
EMPTY_ATTRIBUTES
Empty attributes immutable object. |
| Constructor Summary | |
|---|---|
SAXUtils()
|
|
| Method Summary | |
|---|---|
static void |
createElement(ContentHandler contentHandler,
String localName)
Create a start and endElement with a empty Namespace and without Attributes |
static void |
createElement(ContentHandler contentHandler,
String localName,
Attributes atts)
Create a start and endElement with a empty Namespace |
static void |
createElement(ContentHandler contentHandler,
String localName,
Attributes atts,
String stringValue)
Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameter |
static void |
createElement(ContentHandler contentHandler,
String localName,
String stringValue)
Create a start and endElement with a empty Namespace and without Attributes The content of the Element is set to the stringValue parameter |
static void |
createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName)
Create a start and endElement without Attributes |
static void |
createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts)
Create a start and endElement |
static void |
createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts,
String stringValue)
Create a start and endElement with a empty Namespace The content of the Element is set to the stringValue parameter |
static void |
createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
String stringValue)
Create a start and endElement without Attributes The content of the Element is set to the stringValue parameter |
static void |
data(ContentHandler contentHandler,
String data)
Add string data |
static void |
endElement(ContentHandler contentHandler,
String localName)
Create endElement with empty Namespace For information on the names, see startElement. |
static void |
endElement(ContentHandler contentHandler,
String namespaceURI,
String localName)
Create endElement Prefix must be mapped to empty String For information on the names, see startElement. |
static void |
startElement(ContentHandler contentHandler,
String localName)
Create a startElement with a empty Namespace and without Attributes |
static void |
startElement(ContentHandler contentHandler,
String localName,
Attributes atts)
Create a startElement with a empty Namespace |
static void |
startElement(ContentHandler contentHandler,
String namespaceURI,
String localName)
Create a startElement without Attributes Prefix must be mapped to empty String |
static void |
startElement(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts)
Create a startElement with a empty Namespace Prefix must be mapped to empty String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Attributes EMPTY_ATTRIBUTES
| Constructor Detail |
|---|
public SAXUtils()
| Method Detail |
|---|
public static void data(ContentHandler contentHandler,
String data)
throws SAXException
contentHandler - The SAX content handlerdata - The string data
SAXException
public static void createElement(ContentHandler contentHandler,
String localName)
throws SAXException
localName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElement(ContentHandler contentHandler,
String localName,
String stringValue)
throws SAXException
localName - The local name (without prefix)stringValue - The content of the Element
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElement(ContentHandler contentHandler,
String localName,
Attributes atts)
throws SAXException
localName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
public static void createElement(ContentHandler contentHandler,
String localName,
Attributes atts,
String stringValue)
throws SAXException
localName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.stringValue - The content of the Element
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
public static void createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName)
throws SAXException
localName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
String stringValue)
throws SAXException
localName - The local name (without prefix)stringValue - The content of the Element
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts)
throws SAXException
localName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
public static void createElementNS(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts,
String stringValue)
throws SAXException
localName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.stringValue - The content of the Element
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
public static void endElement(ContentHandler contentHandler,
String localName)
throws SAXException
For information on the names, see startElement.
localName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.
public static void endElement(ContentHandler contentHandler,
String namespaceURI,
String localName)
throws SAXException
For information on the names, see startElement.
localName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.
public static void startElement(ContentHandler contentHandler,
String localName)
throws SAXException
localName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void startElement(ContentHandler contentHandler,
String namespaceURI,
String localName)
throws SAXException
namespaceURI - The Namespace URIlocalName - The local name (without prefix)
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String)
public static void startElement(ContentHandler contentHandler,
String localName,
Attributes atts)
throws SAXException
localName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
public static void startElement(ContentHandler contentHandler,
String namespaceURI,
String localName,
Attributes atts)
throws SAXException
namespaceURI - The Namespace URIlocalName - The local name (without prefix)atts - The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException - Any SAX exception, possibly
wrapping another exception.endElement(ContentHandler, String),
Attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||