NASA World Wind

gov.nasa.worldwind.ogc
Class OGCServiceInformation

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.OGCServiceInformation
All Implemented Interfaces:
XMLEventParser
Direct Known Subclasses:
WMSServiceInformation

public class OGCServiceInformation
extends AbstractXMLEventParser

Parses an OGC Service element.


Field Summary
protected  QName ABSTRACT
           
protected  QName ACCESS_CONSTRAINTS
           
protected  String accessConstraints
           
protected  QName CONTACT_INFORMATION
           
protected  OGCContactInformation contactInformation
           
protected  String fees
           
protected  QName FEES
           
protected  QName KEYWORD
           
protected  QName KEYWORD_LIST
           
protected  Set<String> keywords
           
protected  QName NAME
           
protected  QName ONLINE_RESOURCE
           
protected  OGCOnlineResource onlineResource
           
protected  String serviceAbstract
           
protected  String serviceName
           
protected  String serviceTitle
           
protected  QName TITLE
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
OGCServiceInformation(String namespaceURI)
           
 
Method Summary
 XMLEventParser allocate(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventContent(XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, Object... args)
          Parse an event's sub-elements.
 String getAccessConstraints()
           
 OGCContactInformation getContactInformation()
           
 String getFees()
           
 Set<String> getKeywords()
           
 OGCOnlineResource getOnlineResource()
           
 String getServiceAbstract()
           
 String getServiceName()
           
 String getServiceTitle()
           
protected  void keywordsToString(StringBuilder sb)
           
protected  void setAccessConstraints(String accessConstraints)
           
protected  void setContactInformation(OGCContactInformation contactInformation)
           
protected  void setFees(String fees)
           
protected  void setKeywords(Set<String> keywords)
           
protected  void setOnlineResource(OGCOnlineResource onlineResource)
           
protected  void setServiceAbstract(String serviceAbstract)
           
protected  void setServiceName(String serviceName)
           
protected  void setServiceTitle(String serviceTitle)
           
 String toString()
           
 
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, getRoot, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ABSTRACT

protected QName ABSTRACT

ACCESS_CONSTRAINTS

protected QName ACCESS_CONSTRAINTS

accessConstraints

protected String accessConstraints

CONTACT_INFORMATION

protected QName CONTACT_INFORMATION

contactInformation

protected OGCContactInformation contactInformation

fees

protected String fees

FEES

protected QName FEES

KEYWORD

protected QName KEYWORD

KEYWORD_LIST

protected QName KEYWORD_LIST

keywords

protected Set<String> keywords

NAME

protected QName NAME

ONLINE_RESOURCE

protected QName ONLINE_RESOURCE

onlineResource

protected OGCOnlineResource onlineResource

serviceAbstract

protected String serviceAbstract

serviceName

protected String serviceName

serviceTitle

protected String serviceTitle

TITLE

protected QName TITLE
Constructor Detail

OGCServiceInformation

public OGCServiceInformation(String namespaceURI)
Method Detail

allocate

public XMLEventParser allocate(XMLEventParserContext ctx,
                               javax.xml.stream.events.XMLEvent event)
Description copied from class: AbstractXMLEventParser
Create a parser for a specified event.

Overrides:
allocate in class AbstractXMLEventParser
Parameters:
ctx - the current parser context.
event - the event for which the parser is created. Only the event type is used; the new parser can operate on any event of that type.
Returns:
the new parser.

doParseEventContent

protected void doParseEventContent(XMLEventParserContext ctx,
                                   javax.xml.stream.events.XMLEvent event,
                                   Object... args)
                            throws javax.xml.stream.XMLStreamException
Description copied from class: AbstractXMLEventParser
Parse an event's sub-elements.

Overrides:
doParseEventContent in class AbstractXMLEventParser
Parameters:
ctx - a current parser context.
event - the event to parse.
args - an optional list of arguments that may by used by subclasses.
Throws:
javax.xml.stream.XMLStreamException - if an exception occurs during event-stream reading.

getAccessConstraints

public String getAccessConstraints()

getContactInformation

public OGCContactInformation getContactInformation()

getFees

public String getFees()

getKeywords

public Set<String> getKeywords()

getOnlineResource

public OGCOnlineResource getOnlineResource()

getServiceAbstract

public String getServiceAbstract()

getServiceName

public String getServiceName()

getServiceTitle

public String getServiceTitle()

keywordsToString

protected void keywordsToString(StringBuilder sb)

setAccessConstraints

protected void setAccessConstraints(String accessConstraints)

setContactInformation

protected void setContactInformation(OGCContactInformation contactInformation)

setFees

protected void setFees(String fees)

setKeywords

protected void setKeywords(Set<String> keywords)

setOnlineResource

protected void setOnlineResource(OGCOnlineResource onlineResource)

setServiceAbstract

protected void setServiceAbstract(String serviceAbstract)

setServiceName

protected void setServiceName(String serviceName)

setServiceTitle

protected void setServiceTitle(String serviceTitle)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind