org.mc4j.ems.connection.bean.attribute
Interface EmsAttribute

All Superinterfaces:
java.lang.Comparable

public interface EmsAttribute
extends java.lang.Comparable

Version:
$Revision: 570 $($Author: ghinkl $ / $Date: 2006-04-12 15:14:16 -0400 (Wed, 12 Apr 2006) $)
Author:
Greg Hinkle (ghinkle@users.sourceforge.net), Apr 4, 2005

Field Summary
static java.lang.String CONTROL_ATTRIBUTE_HISTORY
          Default true
static java.lang.String CONTROL_ATTRIBUTE_HISTORY_CLASS
          Default CompleteValueHistory
static java.lang.String CONTROL_ATTRIBUTE_HISTORY_DEPTH
          Default 1
 
Method Summary
 void alterValue(java.lang.Object newValue)
          Alters the internally stored value of this attribute.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 java.lang.Class getTypeClass()
           
 java.lang.Object getValue()
           
 ValueHistory getValueHistory()
           
 int getValueSize()
           
 boolean isNumericType()
           
 boolean isReadable()
           
 boolean isSupportedType()
           
 boolean isWritable()
           
 java.lang.Object refresh()
          Updates the local value of this mbean from the server
 void registerAttributeChangeListener(AttributeChangeListener listener)
           
 void setSupportedType(boolean supportedType)
           
 void setValue(java.lang.Object newValue)
          Set the attribute on the server
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

CONTROL_ATTRIBUTE_HISTORY

static final java.lang.String CONTROL_ATTRIBUTE_HISTORY
Default true

See Also:
Constant Field Values

CONTROL_ATTRIBUTE_HISTORY_CLASS

static final java.lang.String CONTROL_ATTRIBUTE_HISTORY_CLASS
Default CompleteValueHistory

See Also:
Constant Field Values

CONTROL_ATTRIBUTE_HISTORY_DEPTH

static final java.lang.String CONTROL_ATTRIBUTE_HISTORY_DEPTH
Default 1

See Also:
Constant Field Values
Method Detail

registerAttributeChangeListener

void registerAttributeChangeListener(AttributeChangeListener listener)

getValue

java.lang.Object getValue()

setValue

void setValue(java.lang.Object newValue)
              throws java.lang.Exception
Set the attribute on the server

Parameters:
newValue - The value to be set
Throws:
java.lang.Exception

alterValue

void alterValue(java.lang.Object newValue)
Alters the internally stored value of this attribute. Does not update the server value. Is intended for mass load of attribute data via the MBean.

Parameters:
newValue -

refresh

java.lang.Object refresh()
Updates the local value of this mbean from the server


getValueHistory

ValueHistory getValueHistory()

getName

java.lang.String getName()

getType

java.lang.String getType()

getTypeClass

java.lang.Class getTypeClass()

isNumericType

boolean isNumericType()

getDescription

java.lang.String getDescription()

isReadable

boolean isReadable()

isWritable

boolean isWritable()

isSupportedType

boolean isSupportedType()

setSupportedType

void setSupportedType(boolean supportedType)

getValueSize

int getValueSize()