gov.nasa.worldwind.ogc.wcs.wcs100.WCS100Service Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.ogc.wcs.wcs100;
import gov.nasa.worldwind.util.WWUtil;
import gov.nasa.worldwind.util.xml.*;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.events.XMLEvent;
import java.util.*;
/**
* @author tag
* @version $Id: WCS100Service.java 2061 2014-06-19 19:59:40Z tgaskins $
*/
public class WCS100Service extends AbstractXMLEventParser
{
protected List accessConstraints = new ArrayList(1);
public WCS100Service(String namespaceURI)
{
super(namespaceURI);
}
public String getDescription()
{
return (String) this.getField("description");
}
public String getName()
{
return (String) this.getField("name");
}
public String getLabel()
{
return (String) this.getField("label");
}
public List getAccessConstraints()
{
return this.accessConstraints;
}
public String getFees()
{
return (String) this.getField("fees");
}
public WCS100MetadataLink getMetadataLink()
{
return (WCS100MetadataLink) this.getField("metadataLink");
}
public List getKeywords()
{
return ((StringListXMLEventParser) this.getField("keywords")).getStrings();
}
public WCS100ResponsibleParty getResponsibleParty()
{
return (WCS100ResponsibleParty) this.getField("responsibleParty");
}
protected void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args)
throws XMLStreamException
{
if (ctx.isStartElement(event, "accessConstraints"))
{
String s = ctx.getStringParser().parseString(ctx, event);
if (!WWUtil.isEmpty(s))
this.accessConstraints.add(s);
}
else
{
super.doParseEventContent(ctx, event, args);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy