requeststatusparser.java

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

JAVA
50
字号
/*
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.csw;

import gov.nasa.worldwind.applications.gio.xml.ElementParser;
import gov.nasa.worldwind.util.Logging;

/**
 * @author dcollins
 * @version $Id: RequestStatusParser.java 5517 2008-07-15 23:36:34Z dcollins $
 */
public class RequestStatusParser extends ElementParser implements RequestStatus
{
    private String timestamp;
    public static final String ELEMENT_NAME = "RequestStatus";
    private static final String TIMESTAMP_ATTRIBUTE_NAME = "timestamp";

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

        if (attributes == null)
        {
            String message = Logging.getMessage("nullValue.AttributesIsNull");
            Logging.logger().severe(message);
            throw new IllegalArgumentException(message);
        }

        for (int i = 0; i < attributes.getLength(); i++)
        {
            String attribName = attributes.getLocalName(i);
            if (TIMESTAMP_ATTRIBUTE_NAME.equalsIgnoreCase(attribName))
                this.timestamp = attributes.getValue(i);
        }
    }

    public String getTimestamp()
    {
        return this.timestamp;
    }

    public void setTimestamp(String timestamp)
    {
        this.timestamp = timestamp;
    }
}

⌨️ 快捷键说明

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