public class XSLText extends XSLObject
APPLY_IMPORTS, APPLY_TEMPLATES, ARG, ATTRIBUTE, ATTRIBUTE_SET, CALL_TEMPLATE, CDATA, CHOOSE, COMMENT, CONTENTS, COPY, COPY_OF, ELEMENT, ENTITY_REF, FOR_EACH, FUNCTIONS, ID, IF, IMPORT, INCLUDE, KEY, LITERAL, LOCALE, MESSAGE, NUMBER, OTHERWISE, OUTPUT, PARAM, PI, PRESERVE_SPACE, SCRIPT, SORT, STRIP_SPACE, STYLESHEET, TEMPLATE, TEXT, VALUE_OF, VARIABLE, WHEN, WITH_PARAM
Constructor and Description |
---|
XSLText()
Creates a new XSLText element, with no data
|
XSLText(java.lang.String data)
Creates a new XSLText with the given data
|
Modifier and Type | Method and Description |
---|---|
void |
appendText(char[] chars,
int start,
int length)
Appends the given String to the existing data of
this XSLText
|
void |
appendText(java.lang.String data)
Appends the given String to the existing data of
this XSLText
|
boolean |
disableOutputEscaping()
Returns true if the text should not be escaped
|
java.lang.String |
getText()
Retrieves the text data of this XSLText
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute with the given name to the given value.
|
void |
setText(char[] chars,
int start,
int length)
Sets the text data of this XSLText
|
void |
setText(java.lang.String data)
Sets the text data of this XSLText
|
addNamespaceDecl, appendAction, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setNamespace, setTypeName
public XSLText()
parentStylesheet
- the XSL Stylesheet in which this
XSLText is to be addedpublic XSLText(java.lang.String data)
parentStylesheet
- the XSL Stylesheet in which this
XSLText is to be addeddata
- the value of this XSLText objectpublic void appendText(java.lang.String data)
appendText
in class XSLObject
data
- the String to appendpublic void appendText(char[] chars, int start, int length)
appendText
in class XSLObject
chars
- an array of characters containing the data to
apoend to this XSLText.start
- the start index into the character arraylength
- the number of characterspublic boolean disableOutputEscaping()
public java.lang.String getText()
public void setAttribute(java.lang.String name, java.lang.String value) throws XSLException
setAttribute
in class XSLObject
name
- the name of the attribute to setvalue
- the value to set the attribute toXSLException
- if this XSLObject does not allow attributes
with the given name, or if the attribute is read onlypublic void setText(java.lang.String data)
data
- the String to set the data of this XSLText
to.public void setText(char[] chars, int start, int length)
chars
- an array of characters containing the data for
this XSLText.start
- the start index into the character arraylength
- the number of characters