textelementparser.java

来自「world wind java sdk 源码」· Java 代码 · 共 38 行

JAVA
38
字号
/*
Copyright (C) 2001, 2008 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.applications.gio.xml;

/**
 * @author dcollins
 * @version $Id: TextElementParser.java 5517 2008-07-15 23:36:34Z dcollins $
 */
public class TextElementParser extends ElementParser
{
    private String textValue;

    public TextElementParser(String elementName, org.xml.sax.Attributes attributes)
    {
        super(elementName, attributes);
    }

    protected void doEndElement(String name)
    {
        String s = getCharacters();
        if (s != null)
            this.textValue = s;
    }

    public String getValue()
    {
        return this.textValue;
    }

    public void setValue(String textValue)
    {
        this.textValue = textValue;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?