|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openexchange.admin.rmi.dataobjects.EnforceableDataObject com.openexchange.admin.rmi.dataobjects.ExtendableDataObject
public abstract class ExtendableDataObject
This class defines all those methods which make and object capable of being dynamically extended by other attributes.
To implement this in our class simply extend from this class.
Constructor Summary | |
---|---|
ExtendableDataObject()
|
Method Summary | |
---|---|
void |
addExtension(OXCommonExtension extension)
Adds an extension to an object |
boolean |
equals(Object obj)
|
Hashtable<String,OXCommonExtension> |
getAllExtensionsAsHash()
Returns a Hashtable of all extensions with the name of the extensions as key |
OXCommonExtension |
getFirstExtensionByName(String extname)
A convenience method for getting the first extension in a list of equal extension names. |
int |
hashCode()
|
boolean |
isExtensionsok()
Shows if an error occurred in any of the extensions of this object. |
boolean |
isExtensionsset()
This method will be used in the future |
boolean |
removeExtension(OXCommonExtension extension)
Removes the given extension from this object. |
void |
setExtensionsok(boolean extensionsok)
|
String |
toString()
|
Methods inherited from class com.openexchange.admin.rmi.dataobjects.EnforceableDataObject |
---|
getMandatoryMembersChange, getMandatoryMembersCreate, getMandatoryMembersDelete, getMandatoryMembersRegister, getUnsetMembers, mandatoryChangeMembersSet, mandatoryCreateMembersSet, mandatoryDeleteMembersSet, mandatoryRegisterMembersSet, testMandatoryCreateFieldsNull |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtendableDataObject()
Method Detail |
---|
public void addExtension(OXCommonExtension extension) throws DuplicateExtensionException
extension
- An OXCommonExtension
object
DuplicateExtensionException
public Hashtable<String,OXCommonExtension> getAllExtensionsAsHash()
Hashtable
of all extensions with the name of the extensions as key
Hashtable
public OXCommonExtension getFirstExtensionByName(String extname)
extname
-
public boolean isExtensionsok()
true
here everything
is fine. Otherwise an error occurred and you have to go through all extensions to find out in which one this
was happening
boolean
valuepublic boolean isExtensionsset()
public boolean removeExtension(OXCommonExtension extension)
extension
- An OXCommonExtension
object specifying the extension to be removed
public final void setExtensionsok(boolean extensionsok)
public String toString()
EnforceableDataObject
toString
in class EnforceableDataObject
public int hashCode()
hashCode
in class EnforceableDataObject
public boolean equals(Object obj)
equals
in class EnforceableDataObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |