org.obe.spi.model
Interface AttributeInstance

All Known Implementing Classes:
AbstractSystemAttribute

public interface AttributeInstance

Holds the persistent state of workflow relevant data. This interface uses only standard Java data types; it does not need to know about WAPI data types - conversions are handled externally to the persistence service. No parameter validation need be performed by implementations.

Author:
Adrian Price

Method Summary
 java.lang.String getName()
           
 AttributedEntity getOwner()
           
 int getType()
           
 java.lang.Object getValue()
          Retrieves the attribute value.
 void setValue(int type, java.lang.Object value)
          Sets the attribute value.
 

Method Detail

getOwner

public AttributedEntity getOwner()

getName

public java.lang.String getName()

getType

public int getType()

getValue

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

Returns:
The attribute value.
Throws:
OBERuntimeException - if the value cannot be converted to the correct class.
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
Sets the attribute value. Implementations are responsible for converting the value to the correct class for the data type.

Parameters:
type - The data type (typically Type.DEFAULT_TYPE).
value - The value to set.
Throws:
OBERuntimeException - If the value cannot be converted to the correct class.
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.