| org.savarese.unicorn.ui.ObjectPanelModel
ObjectPanelModel | public interface ObjectPanelModel (Code) | | Interface for adapting objects for use by
ObjectPanel .
|
getAttribute | public Object getAttribute(String attribute) throws AttributeNotFoundException, Exception(Code) | | Retrieves a named attribute from the adapted object.
Parameters: attribute - The name of the attribute to retrieve. The attribute corresponding to the provided name. throws: AttributeNotFoundException - If the attribute does not exist. throws: Exception - If an error occurs while retrieving theattribute. An exception may occur while communicating with aremote object, while using reflection, or other reasons specificto the model implementation. |
getObject | public O getObject()(Code) | | Retrieves the object adapted to the interface.
The object adapted to the interface. |
getObjectInfo | public MBeanInfo getObjectInfo()(Code) | | Returns a description of the object.
The a description of the object. |
getObjectName | public String getObjectName()(Code) | | Returns a string that identifies the object.
A string that identifies the object. |
invoke | public Object invoke(String operation, Object[] params, Class[] types, String[] signature) throws Exception(Code) | | Invokes an operation of the adapted object and returns its result,
if any.
Parameters: operation - The name of the operation to invoke. Parameters: params - An array of parameters for the operation. Parameters: types - An array containing the types of the operation parameters. Parameters: signature - A string representation of the types (i.e., thefully qualified class names) of the operation parameters. The result of the operation, if any. throws: Exception - If an unexpected condition arises that prventsthe successful invocation of the operation. |
isValid | public boolean isValid()(Code) | | Determines if the model is in a valid state. A model may be
rendered invalid if it has no object, if an exception is occurs
during a remote invocation operation, or any number of reasons
specific to the model implementation.
True if the model is in a valid state, false if not. |
setAttribute | public void setAttribute(String attribute, Object value) throws AttributeNotFoundException, Exception(Code) | | Sets the value of a named attribute of the adapted object.
Parameters: attribute - The name of the attribute to set. Parameters: value - The new value of the attribute. throws: AttributeNotFoundException - If the attribute does not exist. throws: Exception - If an error occurs while retrieving theattribute. An exception may occur while communicating with aremote object, while using reflection, or other reasons specificto the model implementation. |
setObject | public void setObject(O obj)(Code) | | Sets the object to be adapted to the interface.
Parameters: obj - The object to be adapted. |
|
|