NASA World Wind

gov.nasa.worldwind.ogc
Class OGCContactInformation

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by gov.nasa.worldwind.ogc.OGCContactInformation
All Implemented Interfaces:
XMLEventParser

public class OGCContactInformation
extends AbstractXMLEventParser

Parses an OGC ContactInformation element.


Field Summary
protected  QName CONTACT_ADDRESS
           
protected  QName CONTACT_ELECTRONIC_MAIL_ADDRESS
           
protected  QName CONTACT_FACSIMILE_TELEPHONE
           
protected  QName CONTACT_ORGANIZATION
           
protected  QName CONTACT_PERSON
           
protected  QName CONTACT_PERSON_PRIMARY
           
protected  QName CONTACT_POSITION
           
protected  QName CONTACT_VOICE_TELEPHONE
           
protected  OGCAddress contactAddress
           
protected  String electronicMailAddress
           
protected  String facsimileTelephone
           
protected  String organization
           
protected  String personPrimary
           
protected  String position
           
protected  String voiceTelephone
           
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
OGCContactInformation(String namespaceURI)
           
 
Method Summary
 XMLEventParser allocate(XMLEventParserContext ctx, XMLEvent event)
          Create a parser for a specified event.
protected  void doParseEventContent(XMLEventParserContext ctx, XMLEvent event, Object... args)
          Parse an event's sub-elements.
 OGCAddress getContactAddress()
           
 String getElectronicMailAddress()
           
 String getFacsimileTelephone()
           
 String getOrganization()
           
 String getPersonPrimary()
           
 String getPosition()
           
 String getVoiceTelephone()
           
protected  String[] parseContactPersonPrimary(XMLEventParserContext ctx, XMLEvent cppEvent)
           
protected  void setContactAddress(OGCAddress contactAddress)
           
protected  void setElectronicMailAddress(String electronicMailAddress)
           
protected  void setFacsimileTelephone(String facsimileTelephone)
           
protected  void setOrganization(String organization)
           
protected  void setPersonPrimary(String personPrimary)
           
protected  void setPosition(String position)
           
protected  void setVoiceTelephone(String voiceTelephone)
           
 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

CONTACT_ADDRESS

protected QName CONTACT_ADDRESS

CONTACT_ELECTRONIC_MAIL_ADDRESS

protected QName CONTACT_ELECTRONIC_MAIL_ADDRESS

CONTACT_FACSIMILE_TELEPHONE

protected QName CONTACT_FACSIMILE_TELEPHONE

CONTACT_ORGANIZATION

protected QName CONTACT_ORGANIZATION

CONTACT_PERSON

protected QName CONTACT_PERSON

CONTACT_PERSON_PRIMARY

protected QName CONTACT_PERSON_PRIMARY

CONTACT_POSITION

protected QName CONTACT_POSITION

CONTACT_VOICE_TELEPHONE

protected QName CONTACT_VOICE_TELEPHONE

contactAddress

protected OGCAddress contactAddress

electronicMailAddress

protected String electronicMailAddress

facsimileTelephone

protected String facsimileTelephone

organization

protected String organization

personPrimary

protected String personPrimary

position

protected String position

voiceTelephone

protected String voiceTelephone
Constructor Detail

OGCContactInformation

public OGCContactInformation(String namespaceURI)
Method Detail

allocate

public XMLEventParser allocate(XMLEventParserContext ctx,
                               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,
                                   XMLEvent event,
                                   Object... args)
                            throws 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:
XMLStreamException - if an exception occurs during event-stream reading.

getContactAddress

public OGCAddress getContactAddress()

getElectronicMailAddress

public String getElectronicMailAddress()

getFacsimileTelephone

public String getFacsimileTelephone()

getOrganization

public String getOrganization()

getPersonPrimary

public String getPersonPrimary()

getPosition

public String getPosition()

getVoiceTelephone

public String getVoiceTelephone()

parseContactPersonPrimary

protected String[] parseContactPersonPrimary(XMLEventParserContext ctx,
                                             XMLEvent cppEvent)
                                      throws XMLStreamException
Throws:
XMLStreamException

setContactAddress

protected void setContactAddress(OGCAddress contactAddress)

setElectronicMailAddress

protected void setElectronicMailAddress(String electronicMailAddress)

setFacsimileTelephone

protected void setFacsimileTelephone(String facsimileTelephone)

setOrganization

protected void setOrganization(String organization)

setPersonPrimary

protected void setPersonPrimary(String personPrimary)

setPosition

protected void setPosition(String position)

setVoiceTelephone

protected void setVoiceTelephone(String voiceTelephone)

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind