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
-
MBElement()
-
-
deleteMBElement(String)
- Removes any ByteArray representation of this MBElement
that might have been written to the given directory.
-
dumpProperties()
- Dumps the properties of this MBElement.
-
getManagedBean()
- Gets the ManagedBean object with which this MBElement
instance is associated.
-
getMBMoniker()
- Gets the MBMoniker object associated with this MBElement.
-
getObjectByteArray()
- Gets the ByteArray representation of the
object associated with this MBElement instance.
-
getPreferredClassAsString()
- Gets the preferred class of this
subclass of MBElement as a String.
-
getProperties()
- Gets the Hashtable containing all MBElement properties.
-
getProperty(String)
- Gets the value of an MBElement property.
-
getRawObjectByteArray()
- Gets the ByteArray representation of the
object associated with this MBElement instance.
-
getType()
- Gets the MBType of this MBElement subclass.
-
getTypeAsString()
- Gets the type of this MBElement subclass as
a String.
-
isDesignTime()
- true if the Java-Bean property has a value
of True; false otherwise.
-
isJavaBean()
- true if the Java-Bean property has a value
of True; false otherwise.
-
putMBElement()
- Writes the ByteArray representation of this MBElement
out to the working directory.
-
removeProperty(String)
- Removes an MBElement property.
-
setDesignTime(boolean)
- Sets the Design-Time: property for this MBElement.
-
setJavaBean(boolean)
- Sets the Java-Bean: property for this MBElement.
-
setManagedBean(ManagedBean)
- Sets the ManagedBean object with which this MBElement instance
is associated.
-
setMBMoniker(MBMoniker)
- Sets the MBMoniker object associated with this MBElement
instance.
-
setObjectByteArray(byte[])
- Sets the ByteArray representation of the
object associated with this MBElement instance.
-
setProperty(String, String)
- Sets an arbitrary property on the MBElement.
-
unputMBElement()
- Removes any ByteArray representation of this MBElement
that might have been written to the working directory.
-
writeMBElement(String)
- Writes the ByteArray representation of this MBElement
out into the directory specifed by the argument.
MBElement
public MBElement()
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.
getType
public abstract MBType getType()
- Gets the MBType of this MBElement subclass.
- Returns:
- The MBType of this MBElement subclass.
- See Also:
- MBType
getPreferredClassAsString
public abstract String getPreferredClassAsString()
- Gets the preferred class of this
subclass of MBElement as a String.
- Returns:
- The String representing the preferred class.
getMBMoniker
public MBMoniker getMBMoniker()
- Gets the MBMoniker object associated with this MBElement.
- Returns:
- The MBMoniker object associated with this MBElement instance.
- See Also:
- MBMoniker
setMBMoniker
public synchronized void setMBMoniker(MBMoniker m)
- Sets the MBMoniker object associated with this MBElement
instance.
- Parameters:
- m - The new MBMoniker.
- See Also:
- MBMoniker
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
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
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.
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.
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.
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.
putMBElement
public synchronized boolean putMBElement()
- Writes the ByteArray representation of this MBElement
out to the working directory.
- Returns:
- true if successful; false otherwise.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
dumpProperties
public void dumpProperties()
- Dumps the properties of this MBElement.
All Packages Class Hierarchy This Package Previous Next Index