org.apache.cocoon.sax.util
Class SAXEventsBuilder

java.lang.Object
  extended by org.apache.cocoon.sax.util.SAXEventsBuilder

public class SAXEventsBuilder
extends Object


Nested Class Summary
static class SAXEventsBuilder.Attribute
           
 
Field Summary
protected  ContentHandler contentHandler
           
protected  String localName
           
protected  String qName
           
protected  String uri
           
 
Method Summary
static
<T> SAXEventsBuilder.Attribute
attribute(String uri, String localName, String qName, String type, T value)
           
static
<T> SAXEventsBuilder.Attribute
attribute(String name, T value)
           
<T> SAXEventsBuilder
body(T elementBody)
           
 SAXEventsBuilder end()
           
 void endDocument()
           
static SAXEventsBuilder newDocument(ContentHandler contentHandler)
           
 SAXEventsBuilder start(String localName, SAXEventsBuilder.Attribute... attributes)
           
 SAXEventsBuilder start(String uri, String localName, String qName, SAXEventsBuilder.Attribute... attributes)
           
static SAXEventsBuilder wrap(ContentHandler contentHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected final String uri

localName

protected final String localName

qName

protected final String qName

contentHandler

protected final ContentHandler contentHandler
Method Detail

newDocument

public static SAXEventsBuilder newDocument(ContentHandler contentHandler)
                                    throws SAXException
Throws:
SAXException

wrap

public static SAXEventsBuilder wrap(ContentHandler contentHandler)

attribute

public static <T> SAXEventsBuilder.Attribute attribute(String name,
                                                       T value)

attribute

public static <T> SAXEventsBuilder.Attribute attribute(String uri,
                                                       String localName,
                                                       String qName,
                                                       String type,
                                                       T value)

start

public SAXEventsBuilder start(String localName,
                              SAXEventsBuilder.Attribute... attributes)
                       throws SAXException
Throws:
SAXException

start

public SAXEventsBuilder start(String uri,
                              String localName,
                              String qName,
                              SAXEventsBuilder.Attribute... attributes)
                       throws SAXException
Throws:
SAXException

body

public <T> SAXEventsBuilder body(T elementBody)
                      throws SAXException
Throws:
SAXException

end

public SAXEventsBuilder end()
                     throws SAXException
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Throws:
SAXException


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.