|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument
org.opengroupware.jogi.connect.xmlrpc.XmlRpcPhone
This Class represents one Phone entry with its entities: info, number, telephoneId, type
Field Summary | |
static java.lang.String |
PHONE_ID
|
static java.lang.String |
PHONE_INFO
|
static java.lang.String |
PHONE_NUMBER
|
static java.lang.String |
PHONE_TYPE
|
Fields inherited from class org.opengroupware.jogi.connect.xmlrpc.XmlRpcBaseDocument |
content_, id_, KEY_ID |
Constructor Summary | |
protected |
XmlRpcPhone(java.util.Map phone)
Creates a new phone object out of a given Map. |
Method Summary | |
protected boolean |
checkNewContent(java.util.Map new_content_map)
Checks if the supplied content is valid. |
java.lang.String |
getId()
Get the id of this phone object. |
java.lang.String |
getInfo()
Get the info which is associated with this phone object. |
java.lang.String |
getNumber()
Get the number for this phone object. |
java.lang.String |
getType()
Get the type of this phone object. |
void |
setInfo(java.lang.String info)
Set the info for this telephone object. |
void |
setNumber(java.lang.String number)
Set the number. |
void |
setType(java.lang.String type)
Set the new type of this phone object. |
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 |
public static final java.lang.String PHONE_INFO
public static final java.lang.String PHONE_NUMBER
public static final java.lang.String PHONE_ID
public static final java.lang.String PHONE_TYPE
Constructor Detail |
protected XmlRpcPhone(java.util.Map phone)
phone
- A result returned by an OpenGroupware remote call which
represents a phone.
IllegalArgumentExcepetion
- If the phone Argument was
null
or the phone Element does not contain the necesarry
data.Method Detail |
public java.lang.String getId() throws OgoException, ConnectionException
Phone
id
of this phone object. The id
is unique for all telephones in all objects.
getId
in interface Phone
getId
in class XmlRpcBaseDocument
OgoException
ConnectionException
public java.lang.String getInfo() throws OgoException, ConnectionException
Phone
getInfo
in interface Phone
OgoException
ConnectionException
public java.lang.String getNumber() throws OgoException, ConnectionException
Phone
getNumber
in interface Phone
OgoException
ConnectionException
public java.lang.String getType() throws OgoException, ConnectionException
Phone
getType
in interface Phone
OgoException
ConnectionException
public void setInfo(java.lang.String info) throws OgoException, ConnectionException
Phone
setInfo
in interface Phone
info
- The info to set for this phone object.
OgoException
ConnectionException
public void setNumber(java.lang.String number) throws OgoException, ConnectionException
Phone
setNumber
in interface Phone
number
- The new number.
OgoException
ConnectionException
public void setType(java.lang.String type) throws OgoException, ConnectionException
Phone
setType
in interface Phone
type
- The new type for this phone object.
OgoException
ConnectionException
protected boolean checkNewContent(java.util.Map new_content_map)
telephoneId
and a type
entry in the map.
checkNewContent
in class XmlRpcBaseDocument
new_content_map
- The new contents returned by a remote call from
which the telephone data should be initialized.
true if the supplied data was valid. Otherwise
false
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |