📄 simpletextnode.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: SimpleTextNode.java
package org.apache.struts2.views.xslt;
import org.apache.struts2.StrutsException;
import org.w3c.dom.*;
// Referenced classes of package org.apache.struts2.views.xslt:
// AbstractAdapterNode, AdapterFactory, AdapterNode
public class SimpleTextNode extends AbstractAdapterNode
implements Node, Text
{
public SimpleTextNode(AdapterFactory rootAdapterFactory, AdapterNode parent, String propertyName, Object value)
{
setContext(rootAdapterFactory, parent, propertyName, value);
}
protected String getStringValue()
{
return getPropertyValue().toString();
}
public void setData(String string)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public String getData()
throws DOMException
{
return getStringValue();
}
public int getLength()
{
return getStringValue().length();
}
public String getNodeName()
{
return "#text";
}
public short getNodeType()
{
return 3;
}
public String getNodeValue()
throws DOMException
{
return getStringValue();
}
public void appendData(String string)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public void deleteData(int i, int i1)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public void insertData(int i, String string)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public void replaceData(int i, int i1, String string)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public Text splitText(int i)
throws DOMException
{
throw new StrutsException("Operation not supported");
}
public String substringData(int beginIndex, int endIndex)
throws DOMException
{
return getStringValue().substring(beginIndex, endIndex);
}
public boolean isElementContentWhitespace()
{
throw operationNotSupported();
}
public String getWholeText()
{
throw operationNotSupported();
}
public Text replaceWholeText(String string)
throws DOMException
{
throw operationNotSupported();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -