All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.mb.MBElement

java.lang.Object
   |
   +----com.ibm.beans.mb.MBElement

public abstract class MBElement
extends Object
implements Serializable
The MBElement class is a partially-implemented abstract class that serves as the superclass for all of the objects that can reside within a ManagedBean.

See Also:
ManagedBean, MBBeanClass, MBBeanCustomizerClass, MBBeanCustomizerSrc, MBBeanIcon, MBBeanInfoClass, MBBeanInfoSrc, MBBeanSer, MBBeanSrc, MBExceptionClass, MBExceptionSrc, MBImage, MBOtherClass, MBOtherFile, MBOtherSrc, MBOtherSer

Constructor Index

 o MBElement()

Method Index

 o deleteMBElement(String)
Removes any ByteArray representation of this MBElement that might have been written to the given directory.
 o dumpProperties()
Dumps the properties of this MBElement.
 o getManagedBean()
Gets the ManagedBean object with which this MBElement instance is associated.
 o getMBMoniker()
Gets the MBMoniker object associated with this MBElement.
 o getObjectByteArray()
Gets the ByteArray representation of the object associated with this MBElement instance.
 o getPreferredClassAsString()
Gets the preferred class of this subclass of MBElement as a String.
 o getProperties()
Gets the Hashtable containing all MBElement properties.
 o getProperty(String)
Gets the value of an MBElement property.
 o getRawObjectByteArray()
Gets the ByteArray representation of the object associated with this MBElement instance.
 o getType()
Gets the MBType of this MBElement subclass.
 o getTypeAsString()
Gets the type of this MBElement subclass as a String.
 o isDesignTime()
true if the Java-Bean property has a value of True; false otherwise.
 o isJavaBean()
true if the Java-Bean property has a value of True; false otherwise.
 o putMBElement()
Writes the ByteArray representation of this MBElement out to the working directory.
 o removeProperty(String)
Removes an MBElement property.
 o setDesignTime(boolean)
Sets the Design-Time: property for this MBElement.
 o setJavaBean(boolean)
Sets the Java-Bean: property for this MBElement.
 o setManagedBean(ManagedBean)
Sets the ManagedBean object with which this MBElement instance is associated.
 o setMBMoniker(MBMoniker)
Sets the MBMoniker object associated with this MBElement instance.
 o setObjectByteArray(byte[])
Sets the ByteArray representation of the object associated with this MBElement instance.
 o setProperty(String, String)
Sets an arbitrary property on the MBElement.
 o unputMBElement()
Removes any ByteArray representation of this MBElement that might have been written to the working directory.
 o writeMBElement(String)
Writes the ByteArray representation of this MBElement out into the directory specifed by the argument.

Constructors

 o MBElement
 public MBElement()

Methods

 o getTypeAsString
 public abstract String getTypeAsString()
Gets the type of this MBElement subclass as a String.

Returns:
The type of this MBElement subclass as a String.
 o getType
 public abstract MBType getType()
Gets the MBType of this MBElement subclass.

Returns:
The MBType of this MBElement subclass.
See Also:
MBType
 o getPreferredClassAsString
 public abstract String getPreferredClassAsString()
Gets the preferred class of this subclass of MBElement as a String.

Returns:
The String representing the preferred class.
 o getMBMoniker
 public MBMoniker getMBMoniker()
Gets the MBMoniker object associated with this MBElement.

Returns:
The MBMoniker object associated with this MBElement instance.
See Also:
MBMoniker
 o setMBMoniker
 public synchronized void setMBMoniker(MBMoniker m)
Sets the MBMoniker object associated with this MBElement instance.

Parameters:
m - The new MBMoniker.
See Also:
MBMoniker
 o getManagedBean
 public ManagedBean getManagedBean()
Gets the ManagedBean object with which this MBElement instance is associated.

Returns:
The ManagedBean object with which this MBElement instance is associated.
See Also:
ManagedBean
 o setManagedBean
 public synchronized void setManagedBean(ManagedBean mb)
Sets the ManagedBean object with which this MBElement instance is associated.

Parameters:
mb - The new ManagedBean object.
See Also:
ManagedBean
 o getObjectByteArray
 public synchronized byte[] getObjectByteArray()
Gets the ByteArray representation of the object associated with this MBElement instance.

Returns:
The ByteArray representation of the object associated with this MBElement instance.
 o getRawObjectByteArray
 protected byte[] getRawObjectByteArray()
Gets the ByteArray representation of the object associated with this MBElement instance. This method does not provide for automatic reconstitution of the ObjectByteArray if the ObjectByteArray is null.

Returns:
The ByteArray representation of the object associated with this MBElement instance.
 o setObjectByteArray
 public synchronized void setObjectByteArray(byte b[])
Sets the ByteArray representation of the object associated with this MBElement instance.

Parameters:
b - The ByteArray representation of the object to be associated.
 o writeMBElement
 public synchronized boolean writeMBElement(String dir)
Writes the ByteArray representation of this MBElement out into the directory specifed by the argument.

Parameters:
dir - The directory where the ByteArray representation is written.
Returns:
true if successful; false otherwise.
 o putMBElement
 public synchronized boolean putMBElement()
Writes the ByteArray representation of this MBElement out to the working directory.

Returns:
true if successful; false otherwise.
 o deleteMBElement
 public synchronized boolean deleteMBElement(String dir)
Removes any ByteArray representation of this MBElement that might have been written to the given directory.

Parameters:
dir - The directory where the ByteArray representation is located.
Returns:
true if successful; false otherwise.
 o unputMBElement
 public synchronized boolean unputMBElement()
Removes any ByteArray representation of this MBElement that might have been written to the working directory.

Returns:
true if successful; false otherwise.
 o setProperty
 public void setProperty(String key,
                         String value)
Sets an arbitrary property on the MBElement. These properties will appear in the manifest file when the RepositoryModel is written. Keys will automatically have a colon ":" suffixed when written to the manifest.

Parameters:
key - The property key.
value - The property value.
 o getProperty
 public String getProperty(String key)
Gets the value of an MBElement property.

Parameters:
key - The key to search for.
Returns:
The property value associated with key, or null if key is not found.
 o removeProperty
 public String removeProperty(String key)
Removes an MBElement property.

Parameters:
key - The key to search for.
Returns:
The property value associated with key, or null if key is not found.
 o getProperties
 public Hashtable getProperties()
Gets the Hashtable containing all MBElement properties.

Returns:
Hashtable containing all properties for the MBElement, or null if there are no properties for this MBElement.
 o setJavaBean
 public void setJavaBean(boolean v)
Sets the Java-Bean: property for this MBElement. false will result in the property being removed.

Parameters:
v - true or false, as desired.
 o isJavaBean
 public boolean isJavaBean()
true if the Java-Bean property has a value of True; false otherwise.

Returns:
true if the Java-Bean property has a value of True; false otherwise.
 o setDesignTime
 public void setDesignTime(boolean v)
Sets the Design-Time: property for this MBElement. false will result in the property being removed.

Parameters:
v - true or false, as desired.
 o isDesignTime
 public boolean isDesignTime()
true if the Java-Bean property has a value of True; false otherwise.

Returns:
true if the Design-Time property has a value of True; false otherwise.
 o dumpProperties
 public void dumpProperties()
Dumps the properties of this MBElement.


All Packages  Class Hierarchy  This Package  Previous  Next  Index