FileDocCategorySizeDatePackage
SimpleTextNode.javaAPI DocExample3229Mon Jul 23 13:26:44 BST 2007org.apache.struts2.views.xslt

SimpleTextNode

public class SimpleTextNode extends AbstractAdapterNode implements Node, Text

Fields Summary
Constructors Summary
public SimpleTextNode(AdapterFactory rootAdapterFactory, AdapterNode parent, String propertyName, Object value)

        setContext(rootAdapterFactory, parent, propertyName, value);
    
Methods Summary
public voidappendData(java.lang.String string)

        throw new StrutsException("Operation not supported");
    
public voiddeleteData(int i, int i1)

        throw new StrutsException("Operation not supported");
    
public java.lang.StringgetData()

        return getStringValue();
    
public intgetLength()

        return getStringValue().length();
    
public java.lang.StringgetNodeName()

        return "#text";
    
public shortgetNodeType()

        return Node.TEXT_NODE;
    
public java.lang.StringgetNodeValue()

        return getStringValue();
    
protected java.lang.StringgetStringValue()

        return getPropertyValue().toString();
    
public java.lang.StringgetWholeText()

        throw operationNotSupported();
    
public voidinsertData(int i, java.lang.String string)

        throw new StrutsException("Operation not supported");
    
public booleanisElementContentWhitespace()

        throw operationNotSupported();
    
public voidreplaceData(int i, int i1, java.lang.String string)

        throw new StrutsException("Operation not supported");
    
public org.w3c.dom.TextreplaceWholeText(java.lang.String string)

        throw operationNotSupported();
    
public voidsetData(java.lang.String string)

        throw new StrutsException("Operation not supported");
    
public org.w3c.dom.TextsplitText(int i)

        throw new StrutsException("Operation not supported");
    
public java.lang.StringsubstringData(int beginIndex, int endIndex)

        return getStringValue().substring(beginIndex, endIndex);