org.obe.spi.model
Class AbstractSystemAttribute

java.lang.Object
  extended byorg.obe.spi.model.AbstractSystemAttribute
All Implemented Interfaces:
AttributeInstance, java.io.Serializable

public abstract class AbstractSystemAttribute
extends java.lang.Object
implements AttributeInstance, java.io.Serializable

Abstract base class for system attributes

Author:
Adrian Price
See Also:
Serialized Form

Constructor Summary
protected AbstractSystemAttribute(java.beans.PropertyDescriptor propDesc)
           
 
Method Summary
 java.lang.String getName()
           
 int getType()
           
 java.lang.Object getValue()
          Retrieves the attribute value.
 void setValue(int type, java.lang.Object value)
          Sets the attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.obe.spi.model.AttributeInstance
getOwner
 

Constructor Detail

AbstractSystemAttribute

protected AbstractSystemAttribute(java.beans.PropertyDescriptor propDesc)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface AttributeInstance

getType

public int getType()
Specified by:
getType in interface AttributeInstance

getValue

public java.lang.Object getValue()
Description copied from interface: AttributeInstance
Retrieves the attribute value. Implementations are responsible for returning an instance of the correct class for the data type.

Specified by:
getValue in interface AttributeInstance
Returns:
The attribute value.
See Also:
DataTypes.classForType(int), DataTypes.classForDataType(org.obe.xpdl.model.data.DataType)

setValue

public void setValue(int type,
                     java.lang.Object value)
              throws AttributeReadOnlyException
Description copied from interface: AttributeInstance
Sets the attribute value. Implementations are responsible for converting the value to the correct class for the data type.

Specified by:
setValue in interface AttributeInstance
Parameters:
type - The data type (typically Type.DEFAULT_TYPE).
value - The value to set.
Throws:
AttributeReadOnlyException - if the attribute in question cannot be updated because it is read-only (applies to system attributes only).
See Also:
DataTypes.classForType(int), DataTypes.classForDataType(org.obe.xpdl.model.data.DataType)


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.