org.opengroupware.jogi.connect.xmlrpc
Class XmlRpcBaseDocument

java.lang.Object
  extended byjava.util.Observable
      extended byorg.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
Direct Known Subclasses:
XmlRpcAccount, XmlRpcAddress, XmlRpcAppointment, XmlRpcEnterprise, XmlRpcFetchSpecification, XmlRpcJob, XmlRpcPerson, XmlRpcPhone, XmlRpcProject, XmlRpcResource, XmlRpcTeam

public abstract class XmlRpcBaseDocument
extends java.util.Observable

Author:
Werner Schuster

Field Summary
protected  java.util.Map content_
           
protected  java.lang.String id_
           
static java.lang.String KEY_ID
           
 
Constructor Summary
XmlRpcBaseDocument()
           
 
Method Summary
protected abstract  boolean checkNewContent(java.util.Map new_content)
          This method checks whether the provided Map contains a valid document.
protected  void fireNotify()
           
 java.util.Map getContent()
           
 java.lang.String getId()
           
protected  java.lang.String getString(java.lang.String key)
           
protected  void put(java.lang.String key, java.lang.Object val)
           
 void setContent(java.util.Map new_content)
           
 
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

content_

protected java.util.Map content_

KEY_ID

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

id_

protected java.lang.String id_
Constructor Detail

XmlRpcBaseDocument

public XmlRpcBaseDocument()
Method Detail

getId

public java.lang.String getId()
                       throws OgoException,
                              ConnectionException
Throws:
OgoException
ConnectionException

fireNotify

protected void fireNotify()
                   throws OgoException,
                          ConnectionException
Throws:
OgoException
ConnectionException

put

protected void put(java.lang.String key,
                   java.lang.Object val)
            throws OgoException,
                   ConnectionException
Throws:
OgoException
ConnectionException

getString

protected java.lang.String getString(java.lang.String key)

getContent

public java.util.Map getContent()

setContent

public void setContent(java.util.Map new_content)

checkNewContent

protected abstract boolean checkNewContent(java.util.Map new_content)
This method checks whether the provided Map contains a valid document. If essential parts are missing or are of a wrong type, this method must return false, otherwise true.

Parameters:
new_content - The new content for the document.
Returns:
true if the content meets all requirements, otherwise false.


Copyright © 2003 ogojogi Project, All Rights Reserved.