NASA World Wind

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

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.PersonParser
All Implemented Interfaces:
Identifiable, Person, RegistryObject
Direct Known Subclasses:
UserParser

public class PersonParser
extends RegistryObjectParser
implements Person


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
PersonParser(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)
           
 PersonName getPersonName()
           
 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 setPersonName(PersonName personName)
           
 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

PersonParser

public PersonParser(String elementName,
                    Attributes attributes)
Method Detail

addAddress

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

addAddress

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

addAddresses

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

addEmailAddress

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

addEmailAddress

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

addEmailAddresss

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

addTelephoneNumber

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

addTelephoneNumber

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

addTelephoneNumbers

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

clearAddresses

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

clearEmailAddresses

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

clearTelephoneNumbers

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

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 Person

getAddressCount

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

getAddressIterator

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

getEmailAddress

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

getEmailAddressCount

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

getEmailAddressIterator

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

getIndex

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

getIndex

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

getIndex

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

getPersonName

public PersonName getPersonName()
Specified by:
getPersonName in interface Person

getTelephoneNumber

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

getTelephoneNumberCount

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

getTelephoneNumberIterator

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

removeAddress

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

removeEmailAddress

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

removeTelephoneNumber

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

setAddress

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

setEmailAddress

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

setPersonName

public void setPersonName(PersonName personName)
Specified by:
setPersonName in interface Person

setTelephoneNumber

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

NASA World Wind