|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper
Base class for XSP's object model manipulation logicsheets
xspExpr()
methods port)Field Summary | |
protected static org.xml.sax.helpers.AttributesImpl |
emptyAttr
Empty attributes used for contentHandler.startElement() |
Constructor Summary | |
XSPObjectHelper()
|
Method Summary | |
protected static void |
addAttribute(org.xml.sax.helpers.AttributesImpl attr,
java.lang.String name,
java.lang.String value)
Add an attribute |
protected static void |
data(org.xml.sax.ContentHandler contentHandler,
java.lang.String data)
Add string data |
protected static void |
elementData(java.lang.String uri,
java.lang.String prefix,
org.xml.sax.ContentHandler contentHandler,
java.lang.String name,
java.lang.String data)
Output an element containing text only and no attributes |
protected static void |
elementData(java.lang.String uri,
java.lang.String prefix,
org.xml.sax.ContentHandler contentHandler,
java.lang.String name,
java.lang.String data,
org.xml.sax.helpers.AttributesImpl attr)
Output an element containing text only and attributes |
protected static void |
end(java.lang.String uri,
java.lang.String prefix,
org.xml.sax.ContentHandler contentHandler,
java.lang.String name)
End an element with the proper object's uri and prefix |
protected static void |
start(java.lang.String uri,
java.lang.String prefix,
org.xml.sax.ContentHandler contentHandler,
java.lang.String name)
Start an element with the proper object's uri and prefix and no attributes |
protected static void |
start(java.lang.String uri,
java.lang.String prefix,
org.xml.sax.ContentHandler contentHandler,
java.lang.String name,
org.xml.sax.helpers.AttributesImpl attr)
Start an element with the proper object's uri and prefix and with attributes |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
boolean v)
Implementation of <xsp:expr> for boolean :
outputs characters representing the value (true / false). |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
byte v)
Implementation of <xsp:expr> for byte :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
char v)
Implementation of <xsp:expr> for char :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
java.util.Collection v)
Implementation of <xsp:expr> for java.util.Collection :
outputs the value by calling xspExpr() on each element of the
collection. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
double v)
Implementation of <xsp:expr> for double :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
float v)
Implementation of <xsp:expr> for long :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
int v)
Implementation of <xsp:expr> for int :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
long v)
Implementation of <xsp:expr> for long :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
org.w3c.dom.Node v)
Implementation of <xsp:expr> for org.w3c.dom.Node :
converts the Node to a SAX event stream. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
java.lang.Object v)
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.
|
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
java.lang.String text)
Implementation of <xsp:expr> for String :
outputs characters representing the value. |
static void |
xspExpr(org.xml.sax.ContentHandler contentHandler,
XMLizable v)
Implementation of <xsp:expr> for XMLizable :
outputs the value by calling v.toSax(contentHandler) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.xml.sax.helpers.AttributesImpl emptyAttr
Constructor Detail |
public XSPObjectHelper()
Method Detail |
protected static void elementData(java.lang.String uri, java.lang.String prefix, org.xml.sax.ContentHandler contentHandler, java.lang.String name, java.lang.String data) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlername
- The element namedata
- The data contained by the elementprotected static void elementData(java.lang.String uri, java.lang.String prefix, org.xml.sax.ContentHandler contentHandler, java.lang.String name, java.lang.String data, org.xml.sax.helpers.AttributesImpl attr) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlername
- The element namedata
- The data contained by the elementattr
- The element attributesprotected static void start(java.lang.String uri, java.lang.String prefix, org.xml.sax.ContentHandler contentHandler, java.lang.String name) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlername
- The element nameprotected static void start(java.lang.String uri, java.lang.String prefix, org.xml.sax.ContentHandler contentHandler, java.lang.String name, org.xml.sax.helpers.AttributesImpl attr) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlername
- The element nameattr
- The element attributesprotected static void end(java.lang.String uri, java.lang.String prefix, org.xml.sax.ContentHandler contentHandler, java.lang.String name) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlername
- The element nameprotected static void addAttribute(org.xml.sax.helpers.AttributesImpl attr, java.lang.String name, java.lang.String value) throws org.xml.sax.SAXException
attr
- The attribute listname
- The attribute namevalue
- The attribute valueprotected static void data(org.xml.sax.ContentHandler contentHandler, java.lang.String data) throws org.xml.sax.SAXException
contentHandler
- The SAX content handlerdata
- The string datapublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, char v) throws org.xml.sax.SAXException
char
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, byte v) throws org.xml.sax.SAXException
byte
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, boolean v) throws org.xml.sax.SAXException
boolean
:
outputs characters representing the value (true / false).contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, int v) throws org.xml.sax.SAXException
int
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, long v) throws org.xml.sax.SAXException
long
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, float v) throws org.xml.sax.SAXException
long
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, double v) throws org.xml.sax.SAXException
double
:
outputs characters representing the value.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, java.lang.String text) throws org.xml.sax.SAXException
String
:
outputs characters representing the value.contentHandler
- the SAX content handlertext
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, XMLizable v) throws org.xml.sax.SAXException
XMLizable
:
outputs the value by calling v.toSax(contentHandler)
.contentHandler
- the SAX content handlerv
- the XML fragmentpublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, org.w3c.dom.Node v) throws org.xml.sax.SAXException
org.w3c.dom.Node
:
converts the Node to a SAX event stream.contentHandler
- the SAX content handlerv
- the valuepublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, java.util.Collection v) throws org.xml.sax.SAXException
java.util.Collection
:
outputs the value by calling xspExpr()
on each element of the
collection.contentHandler
- the SAX content handlerv
- the XML fragmentpublic static void xspExpr(org.xml.sax.ContentHandler contentHandler, java.lang.Object v) throws org.xml.sax.SAXException
Object
depending on its class :
xspExpr()
on all its elements,xspExpr()
implementation, use it,contentHandler
- the SAX content handlerv
- the value
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |