Class XSLText
java.lang.Object
org.exolab.adaptx.xslt.XSLObject
org.exolab.adaptx.xslt.XSLText
-
Field Summary
Fields inherited from class 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendText(char[] chars, int start, int length) Appends the given String to the existing data of this XSLTextvoidappendText(String data) Appends the given String to the existing data of this XSLTextbooleanReturns true if the text should not be escapedgetText()Retrieves the text data of this XSLTextvoidsetAttribute(String name, String value) Sets the attribute with the given name to the given value.voidsetText(char[] chars, int start, int length) Sets the text data of this XSLTextvoidSets the text data of this XSLTextMethods inherited from class XSLObject
addNamespaceDecl, appendAction, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setNamespace, setTypeName
-
Constructor Details
-
XSLText
public XSLText()Creates a new XSLText element, with no data- Parameters:
parentStylesheet- the XSL Stylesheet in which this XSLText is to be added
-
XSLText
Creates a new XSLText with the given data- Parameters:
data- the value of this XSLText objectparentStylesheet- the XSL Stylesheet in which this XSLText is to be added
-
-
Method Details
-
appendText
Appends the given String to the existing data of this XSLText- Overrides:
appendTextin classXSLObject- Parameters:
data- the String to append
-
appendText
public void appendText(char[] chars, int start, int length) Appends the given String to the existing data of this XSLText- Overrides:
appendTextin classXSLObject- Parameters:
chars- an array of characters containing the data to apoend to this XSLText.start- the start index into the character arraylength- the number of characters
-
disableOutputEscaping
public boolean disableOutputEscaping()Returns true if the text should not be escaped- Returns:
- true if the text should not be escaped
-
getText
-
setAttribute
Sets the attribute with the given name to the given value.- Overrides:
setAttributein classXSLObject- Parameters:
name- the name of the attribute to setvalue- the value to set the attribute to- Throws:
XSLException- if this XSLObject does not allow attributes with the given name, or if the attribute is read only
-
setText
Sets the text data of this XSLText- Parameters:
data- the String to set the data of this XSLText to.
-
setText
public void setText(char[] chars, int start, int length) Sets the text data of this XSLText- Parameters:
chars- an array of characters containing the data for this XSLText.start- the start index into the character arraylength- the number of characters
-