|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.language.markup.xsp.XSLTExtension
public class XSLTExtension
This class is used as a XSLT extension class. It is used by the XSP generation stylesheet to escape XML characters to make a valid Java strings.
Constructor Summary | |
---|---|
XSLTExtension()
|
Method Summary | |
---|---|
String |
escape(String string)
|
String |
escapeJava(String string)
This method used by Java XSP core logicsheet. |
static String |
escapeJavaString(String string)
Escapes '"' and '\' characters in a String (add a '\' before them) so that it can be inserted in java source + quote special characters as UTF-8 |
static String |
escapeString(String string)
Quote special characters as UTF-8 TC: It's code duplication but that way we don't have to iterate through the StringBuffer twice |
String |
prefix(String string)
Counts amount of spaces in the input line from the beginning to the first new line symbol and returns a string with this amount of spaces. |
String |
suffix(String string)
Counts amount of spaces in the input line from the end to the last new line symbol and returns a string with this amount of spaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLTExtension()
Method Detail |
---|
public static String escapeJavaString(String string)
public static String escapeString(String string)
public String escape(String string)
escapeString(String)
public String escapeJava(String string)
escapeJavaString(String)
public String prefix(String string)
public String suffix(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |