NASA World Wind

gov.nasa.worldwind.applications.gio.ebrim
Class OrganizationParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ebrim.IdentifiableParser
          extended by gov.nasa.worldwind.applications.gio.ebrim.RegistryObjectParser
              extended by gov.nasa.worldwind.applications.gio.ebrim.OrganizationParser
All Implemented Interfaces:
Identifiable, Organization, RegistryObject

public class OrganizationParser
extends RegistryObjectParser
implements Organization


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
OrganizationParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addAddress(Address address)
           
 void addAddress(int index, Address address)
           
 void addAddresses(Collection<? extends Address> c)
           
 void addEmailAddress(EmailAddress emailAddress)
           
 void addEmailAddress(int index, EmailAddress emailAddress)
           
 void addEmailAddresss(Collection<? extends EmailAddress> c)
           
 void addTelephoneNumber(int index, TelephoneNumber telephoneNumber)
           
 void addTelephoneNumber(TelephoneNumber telephoneNumber)
           
 void addTelephoneNumbers(Collection<? extends TelephoneNumber> c)
           
 void clearAddresses()
           
 void clearEmailAddresses()
           
 void clearTelephoneNumbers()
           
protected  void doStartElement(String name, Attributes attributes)
           
 Address getAddress(int index)
           
 int getAddressCount()
           
 Iterator<Address> getAddressIterator()
           
 EmailAddress getEmailAddress(int index)
           
 int getEmailAddressCount()
           
 Iterator<EmailAddress> getEmailAddressIterator()
           
 int getIndex(Address address)
           
 int getIndex(EmailAddress emailAddress)
           
 int getIndex(TelephoneNumber telephoneNumber)
           
 String getParent()
           
 String getPrimaryContact()
           
 TelephoneNumber getTelephoneNumber(int index)
           
 int getTelephoneNumberCount()
           
 Iterator<TelephoneNumber> getTelephoneNumberIterator()
           
 void removeAddress(int index)
           
 void removeEmailAddress(int index)
           
 void removeTelephoneNumber(int index)
           
 void setAddress(int index, Address address)
           
 void setEmailAddress(int index, EmailAddress emailAddress)
           
 void setParent(String parent)
           
 void setPrimaryContact(String primaryContact)
           
 void setTelephoneNumber(int index, TelephoneNumber telephoneNumber)
           
 
Methods inherited from class gov.nasa.worldwind.applications.gio.ebrim.RegistryObjectParser
addClassification, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifier, addExternalIdentifiers, clearClassifications, clearExternalIdentifiers, getClassification, getClassificationCount, getClassificationIterator, getDescription, getExternalIdentifier, getExternalIdentifierCount, getExternalIdentifierIterator, getIndex, getIndex, getLid, getName, getObjectType, getStatus, getVersionInfo, removeClassification, removeExternalIdentifier, setClassification, setDescription, setExternalIdentifier, setLid, setName, setObjectType, setStatus, setVersionInfo
 
Methods inherited from class gov.nasa.worldwind.applications.gio.ebrim.IdentifiableParser
addSlot, addSlot, addSlots, clearSlots, getHome, getId, getIndex, getSlot, getSlotCount, getSlotIterator, removeSlot, setHome, setId, setSlot
 
Methods inherited from class gov.nasa.worldwind.applications.gio.xml.ElementParser
characters, doCharacters, doEndElement, endElement, getCharacters, getCurrentElement, getElementName, setCurrentElement, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.applications.gio.ebrim.RegistryObject
addClassification, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifier, addExternalIdentifiers, clearClassifications, clearExternalIdentifiers, getClassification, getClassificationCount, getClassificationIterator, getDescription, getExternalIdentifier, getExternalIdentifierCount, getExternalIdentifierIterator, getIndex, getIndex, getLid, getName, getObjectType, getStatus, getVersionInfo, removeClassification, removeExternalIdentifier, setClassification, setDescription, setExternalIdentifier, setLid, setName, setObjectType, setStatus, setVersionInfo
 
Methods inherited from interface gov.nasa.worldwind.applications.gio.ebrim.Identifiable
addSlot, addSlot, addSlots, clearSlots, getHome, getId, getIndex, getSlot, getSlotCount, getSlotIterator, removeSlot, setHome, setId, setSlot
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

OrganizationParser

public OrganizationParser(String elementName,
                          Attributes attributes)
Method Detail

addAddress

public void addAddress(Address address)
Specified by:
addAddress in interface Organization

addAddress

public void addAddress(int index,
                       Address address)
Specified by:
addAddress in interface Organization

addAddresses

public void addAddresses(Collection<? extends Address> c)
Specified by:
addAddresses in interface Organization

addEmailAddress

public void addEmailAddress(EmailAddress emailAddress)
Specified by:
addEmailAddress in interface Organization

addEmailAddress

public void addEmailAddress(int index,
                            EmailAddress emailAddress)
Specified by:
addEmailAddress in interface Organization

addEmailAddresss

public void addEmailAddresss(Collection<? extends EmailAddress> c)
Specified by:
addEmailAddresss in interface Organization

addTelephoneNumber

public void addTelephoneNumber(int index,
                               TelephoneNumber telephoneNumber)
Specified by:
addTelephoneNumber in interface Organization

addTelephoneNumber

public void addTelephoneNumber(TelephoneNumber telephoneNumber)
Specified by:
addTelephoneNumber in interface Organization

addTelephoneNumbers

public void addTelephoneNumbers(Collection<? extends TelephoneNumber> c)
Specified by:
addTelephoneNumbers in interface Organization

clearAddresses

public void clearAddresses()
Specified by:
clearAddresses in interface Organization

clearEmailAddresses

public void clearEmailAddresses()
Specified by:
clearEmailAddresses in interface Organization

clearTelephoneNumbers

public void clearTelephoneNumbers()
Specified by:
clearTelephoneNumbers in interface Organization

doStartElement

protected void doStartElement(String name,
                              Attributes attributes)
                       throws Exception
Overrides:
doStartElement in class RegistryObjectParser
Throws:
Exception

getAddress

public Address getAddress(int index)
Specified by:
getAddress in interface Organization

getAddressCount

public int getAddressCount()
Specified by:
getAddressCount in interface Organization

getAddressIterator

public Iterator<Address> getAddressIterator()
Specified by:
getAddressIterator in interface Organization

getEmailAddress

public EmailAddress getEmailAddress(int index)
Specified by:
getEmailAddress in interface Organization

getEmailAddressCount

public int getEmailAddressCount()
Specified by:
getEmailAddressCount in interface Organization

getEmailAddressIterator

public Iterator<EmailAddress> getEmailAddressIterator()
Specified by:
getEmailAddressIterator in interface Organization

getIndex

public int getIndex(Address address)
Specified by:
getIndex in interface Organization

getIndex

public int getIndex(EmailAddress emailAddress)
Specified by:
getIndex in interface Organization

getIndex

public int getIndex(TelephoneNumber telephoneNumber)
Specified by:
getIndex in interface Organization

getParent

public String getParent()
Specified by:
getParent in interface Organization

getPrimaryContact

public String getPrimaryContact()
Specified by:
getPrimaryContact in interface Organization

getTelephoneNumber

public TelephoneNumber getTelephoneNumber(int index)
Specified by:
getTelephoneNumber in interface Organization

getTelephoneNumberCount

public int getTelephoneNumberCount()
Specified by:
getTelephoneNumberCount in interface Organization

getTelephoneNumberIterator

public Iterator<TelephoneNumber> getTelephoneNumberIterator()
Specified by:
getTelephoneNumberIterator in interface Organization

removeAddress

public void removeAddress(int index)
Specified by:
removeAddress in interface Organization

removeEmailAddress

public void removeEmailAddress(int index)
Specified by:
removeEmailAddress in interface Organization

removeTelephoneNumber

public void removeTelephoneNumber(int index)
Specified by:
removeTelephoneNumber in interface Organization

setAddress

public void setAddress(int index,
                       Address address)
Specified by:
setAddress in interface Organization

setEmailAddress

public void setEmailAddress(int index,
                            EmailAddress emailAddress)
Specified by:
setEmailAddress in interface Organization

setParent

public void setParent(String parent)
Specified by:
setParent in interface Organization

setPrimaryContact

public void setPrimaryContact(String primaryContact)
Specified by:
setPrimaryContact in interface Organization

setTelephoneNumber

public void setTelephoneNumber(int index,
                               TelephoneNumber telephoneNumber)
Specified by:
setTelephoneNumber in interface Organization

NASA World Wind