Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » language » markup » xsp » [javadoc | source]
org.apache.cocoon.components.language.markup.xsp
public class: XSPObjectHelper [javadoc | source]
java.lang.Object
   org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper

Direct Known Subclasses:
    XSPCookieHelper

Base class for XSP's object model manipulation logicsheets
Method from org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper Summary:
addAttribute,   data,   elementData,   elementData,   end,   start,   start,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr,   xspExpr
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper Detail:
 protected static  void addAttribute(AttributesImpl attr,
    String name,
    String value) throws SAXException 
    Add an attribute
 protected static  void data(ContentHandler contentHandler,
    String data) throws SAXException 
    Add string data
 protected static  void elementData(String uri,
    String prefix,
    ContentHandler contentHandler,
    String name,
    String data) throws SAXException 
    Output an element containing text only and no attributes
 protected static  void elementData(String uri,
    String prefix,
    ContentHandler contentHandler,
    String name,
    String data,
    AttributesImpl attr) throws SAXException 
    Output an element containing text only and attributes
 protected static  void end(String uri,
    String prefix,
    ContentHandler contentHandler,
    String name) throws SAXException 
    End an element with the proper object's uri and prefix
 protected static  void start(String uri,
    String prefix,
    ContentHandler contentHandler,
    String name) throws SAXException 
    Start an element with the proper object's uri and prefix and no attributes
 protected static  void start(String uri,
    String prefix,
    ContentHandler contentHandler,
    String name,
    AttributesImpl attr) throws SAXException 
    Start an element with the proper object's uri and prefix and with attributes
 public static  void xspExpr(ContentHandler contentHandler,
    char v) throws SAXException 
    Implementation of <xsp:expr> for char : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    byte v) throws SAXException 
    Implementation of <xsp:expr> for byte : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    boolean v) throws SAXException 
    Implementation of <xsp:expr> for boolean : outputs characters representing the value (true / false).
 public static  void xspExpr(ContentHandler contentHandler,
    int v) throws SAXException 
    Implementation of <xsp:expr> for int : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    long v) throws SAXException 
    Implementation of <xsp:expr> for long : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    float v) throws SAXException 
    Implementation of <xsp:expr> for long : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    double v) throws SAXException 
    Implementation of <xsp:expr> for double : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    String text) throws SAXException 
    Implementation of <xsp:expr> for String : outputs characters representing the value.
 public static  void xspExpr(ContentHandler contentHandler,
    XMLizable v) throws SAXException 
    Implementation of <xsp:expr> for XMLizable : outputs the value by calling v.toSax(contentHandler).
 public static  void xspExpr(ContentHandler contentHandler,
    Node v) throws SAXException 
    Implementation of <xsp:expr> for org.w3c.dom.Node : converts the Node to a SAX event stream.
 public static  void xspExpr(ContentHandler contentHandler,
    Collection v) throws SAXException 
    Implementation of <xsp:expr> for java.util.Collection : outputs the value by calling xspExpr() on each element of the collection.
 public static  void xspExpr(ContentHandler contentHandler,
    Object v) throws SAXException 
    Implementation of <xsp:expr> for Object depending on its class :
    • if it's an array, call xspExpr() on all its elements,
    • if it's class has a specific xspExpr()implementation, use it,
    • else, output it's string representation.