org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcAddress

java.lang.Object
  extended byjava.util.Observable
      extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
          extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcAddress
All Implemented Interfaces:
Address

public class XmlRpcAddress
extends XmlRpcBaseDocument
implements Address

The Address holds, like its name, address data and makes modification of the data available.

Author:
Andreas Rath (teddius) E-mail: arath@htu.tugraz.at

Field Summary
static java.lang.String ADDRESS_CITY
           
static java.lang.String ADDRESS_COUNTRY
           
static java.lang.String ADDRESS_ID
           
static java.lang.String ADDRESS_NAME1
           
static java.lang.String ADDRESS_NAME2
           
static java.lang.String ADDRESS_NAME3
           
static java.lang.String ADDRESS_STATE
           
static java.lang.String ADDRESS_STREET
           
static java.lang.String ADDRESS_TYPE
           
static java.lang.String ADDRESS_ZIP
           
 
Fields inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
content_, KEY_ID
 
Constructor Summary
protected XmlRpcAddress()
           
protected XmlRpcAddress(java.util.Map contents)
           
 
Method Summary
protected  boolean checkNewContent(java.util.Map new_content_map)
          check here, that the minimun required data is in the new_content Map;
 java.lang.String getCity()
           
 java.lang.String getCountry()
           
 java.lang.String getId()
           
 java.lang.String getName1()
           
 java.lang.String getName2()
           
 java.lang.String getName3()
           
 java.lang.String getState()
           
 java.lang.String getStreet()
           
 java.lang.String getType()
           
 java.lang.String getZip()
           
 void setCity(java.lang.String string)
           
 void setCountry(java.lang.String string)
           
 void setName1(java.lang.String string)
           
 void setName2(java.lang.String string)
           
 void setName3(java.lang.String string)
           
 void setState(java.lang.String string)
           
 void setStreet(java.lang.String string)
           
 void setType(java.lang.String string)
           
 void setZip(java.lang.String string)
           
 
Methods inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
fireNotify, getContent, getString, put, setContent
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDRESS_CITY

public static final java.lang.String ADDRESS_CITY
See Also:
Constant Field Values

ADDRESS_COUNTRY

public static final java.lang.String ADDRESS_COUNTRY
See Also:
Constant Field Values

ADDRESS_ID

public static final java.lang.String ADDRESS_ID
See Also:
Constant Field Values

ADDRESS_NAME1

public static final java.lang.String ADDRESS_NAME1
See Also:
Constant Field Values

ADDRESS_NAME2

public static final java.lang.String ADDRESS_NAME2
See Also:
Constant Field Values

ADDRESS_NAME3

public static final java.lang.String ADDRESS_NAME3
See Also:
Constant Field Values

ADDRESS_STATE

public static final java.lang.String ADDRESS_STATE
See Also:
Constant Field Values

ADDRESS_STREET

public static final java.lang.String ADDRESS_STREET
See Also:
Constant Field Values

ADDRESS_TYPE

public static final java.lang.String ADDRESS_TYPE
See Also:
Constant Field Values

ADDRESS_ZIP

public static final java.lang.String ADDRESS_ZIP
See Also:
Constant Field Values
Constructor Detail

XmlRpcAddress

protected XmlRpcAddress()

XmlRpcAddress

protected XmlRpcAddress(java.util.Map contents)
Method Detail

getCity

public java.lang.String getCity()
                         throws OgoException,
                                ConnectionException
Specified by:
getCity in interface Address
Throws:
OgoException
ConnectionException

getCountry

public java.lang.String getCountry()
                            throws OgoException,
                                   ConnectionException
Specified by:
getCountry in interface Address
Throws:
OgoException
ConnectionException

getId

public java.lang.String getId()
                       throws OgoException,
                              ConnectionException
Specified by:
getId in interface Address
Overrides:
getId in class XmlRpcBaseDocument
Throws:
OgoException
ConnectionException

getName1

public java.lang.String getName1()
                          throws OgoException,
                                 ConnectionException
Specified by:
getName1 in interface Address
Throws:
OgoException
ConnectionException

getName2

public java.lang.String getName2()
                          throws OgoException,
                                 ConnectionException
Specified by:
getName2 in interface Address
Throws:
OgoException
ConnectionException

getName3

public java.lang.String getName3()
                          throws OgoException,
                                 ConnectionException
Specified by:
getName3 in interface Address
Throws:
OgoException
ConnectionException

getState

public java.lang.String getState()
                          throws OgoException,
                                 ConnectionException
Specified by:
getState in interface Address
Throws:
OgoException
ConnectionException

getStreet

public java.lang.String getStreet()
                           throws OgoException,
                                  ConnectionException
Specified by:
getStreet in interface Address
Throws:
OgoException
ConnectionException

getType

public java.lang.String getType()
                         throws OgoException,
                                ConnectionException
Specified by:
getType in interface Address
Throws:
OgoException
ConnectionException

getZip

public java.lang.String getZip()
                        throws OgoException,
                               ConnectionException
Specified by:
getZip in interface Address
Throws:
OgoException
ConnectionException

setCity

public void setCity(java.lang.String string)
             throws OgoException,
                    ConnectionException
Specified by:
setCity in interface Address
Throws:
OgoException
ConnectionException

setCountry

public void setCountry(java.lang.String string)
                throws OgoException,
                       ConnectionException
Specified by:
setCountry in interface Address
Throws:
OgoException
ConnectionException

setName1

public void setName1(java.lang.String string)
              throws OgoException,
                     ConnectionException
Specified by:
setName1 in interface Address
Throws:
OgoException
ConnectionException

setName2

public void setName2(java.lang.String string)
              throws OgoException,
                     ConnectionException
Specified by:
setName2 in interface Address
Throws:
OgoException
ConnectionException

setName3

public void setName3(java.lang.String string)
              throws OgoException,
                     ConnectionException
Specified by:
setName3 in interface Address
Throws:
OgoException
ConnectionException

setState

public void setState(java.lang.String string)
              throws OgoException,
                     ConnectionException
Specified by:
setState in interface Address
Throws:
OgoException
ConnectionException

setStreet

public void setStreet(java.lang.String string)
               throws OgoException,
                      ConnectionException
Specified by:
setStreet in interface Address
Throws:
OgoException
ConnectionException

setType

public void setType(java.lang.String string)
             throws OgoException,
                    ConnectionException
Specified by:
setType in interface Address
Throws:
OgoException
ConnectionException

setZip

public void setZip(java.lang.String string)
            throws OgoException,
                   ConnectionException
Specified by:
setZip in interface Address
Throws:
OgoException
ConnectionException

checkNewContent

protected boolean checkNewContent(java.util.Map new_content_map)
check here, that the minimun required data is in the new_content Map;

Specified by:
checkNewContent in class XmlRpcBaseDocument
Parameters:
new_content_map -
Returns:
true if the content meets all requirements, otherwise false.


Copyright © 2003 ogojogi Project, All Rights Reserved.