org.activiti.engine.impl.variable
类 CustomObjectType

java.lang.Object
  继承者 org.activiti.engine.impl.variable.CustomObjectType
所有已实现的接口:
VariableType

public class CustomObjectType
extends Object
implements VariableType

Custom object type

作者:
Esteban Robles Luna

字段摘要
protected  Class<?> theClass
           
protected  String typeName
           
 
构造方法摘要
CustomObjectType(String typeName, Class<?> theClass)
           
 
方法摘要
 String getTypeName()
          name of variable type (limited to 100 characters length)
 Object getValue(ValueFields valueFields)
           
 boolean isAbleToStore(Object value)
           
 boolean isCachable()
          Indicates if this variable type supports caching.
 void setValue(Object value, ValueFields valueFields)
          Stores the specified value in the supplied ValueFields.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

typeName

protected String typeName

theClass

protected Class<?> theClass
构造方法详细信息

CustomObjectType

public CustomObjectType(String typeName,
                        Class<?> theClass)
方法详细信息

getTypeName

public String getTypeName()
从接口 VariableType 复制的描述
name of variable type (limited to 100 characters length)

指定者:
接口 VariableType 中的 getTypeName

getValue

public Object getValue(ValueFields valueFields)
指定者:
接口 VariableType 中的 getValue
返回:
the value of a variable based on the specified ValueFields.

isAbleToStore

public boolean isAbleToStore(Object value)
指定者:
接口 VariableType 中的 isAbleToStore
返回:
whether this variable type can store the specified value.

isCachable

public boolean isCachable()
从接口 VariableType 复制的描述

Indicates if this variable type supports caching.

If caching is supported, the result of VariableType.getValue(ValueFields) is saved for the duration of the session and used for subsequent reads of the variable's value.

If caching is not supported, all reads of a variable's value require a fresh call to VariableType.getValue(ValueFields).

指定者:
接口 VariableType 中的 isCachable
返回:
whether variables of this type are cacheable.

setValue

public void setValue(Object value,
                     ValueFields valueFields)
从接口 VariableType 复制的描述
Stores the specified value in the supplied ValueFields.

指定者:
接口 VariableType 中的 setValue


Copyright © 2013 Alfresco. All rights reserved.