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