org.camunda.bpm.engine.impl.core.variable.type
Class FileValueTypeImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
      extended by org.camunda.bpm.engine.impl.core.variable.type.FileValueTypeImpl
All Implemented Interfaces:
Serializable, FileValueType, ValueType

public class FileValueTypeImpl
extends AbstractValueTypeImpl
implements FileValueType

Valuetype to save files from byte arrays, inputstreams or just files as process variables and retrieve them via an InputStream.

Since:
7.4
Author:
Ronny Bräunlich
See Also:
Serialized Form

Field Summary
static String VALUE_INFO_FILE_ENCODING
           
static String VALUE_INFO_FILE_MIME_TYPE
           
static String VALUE_INFO_FILE_NAME
           
 
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
name
 
Fields inherited from interface org.camunda.bpm.engine.variable.type.ValueType
BOOLEAN, BYTES, DATE, DOUBLE, FILE, INTEGER, LONG, NULL, NUMBER, OBJECT, SHORT, STRING
 
Constructor Summary
FileValueTypeImpl()
           
 
Method Summary
 TypedValue createValue(Object value, Map<String,Object> valueInfo)
          Creates a new TypedValue using this type.
 Map<String,Object> getValueInfo(TypedValue typedValue)
          Get the value info for a TypedValue.
 boolean isPrimitiveValueType()
          Indicates whether this type is primitive valued.
 
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.type.AbstractValueTypeImpl
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract, toString, unsupportedConversion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.variable.type.ValueType
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
 

Field Detail

VALUE_INFO_FILE_NAME

public static final String VALUE_INFO_FILE_NAME
See Also:
Constant Field Values

VALUE_INFO_FILE_MIME_TYPE

public static final String VALUE_INFO_FILE_MIME_TYPE
See Also:
Constant Field Values

VALUE_INFO_FILE_ENCODING

public static final String VALUE_INFO_FILE_ENCODING
See Also:
Constant Field Values
Constructor Detail

FileValueTypeImpl

public FileValueTypeImpl()
Method Detail

createValue

public TypedValue createValue(Object value,
                              Map<String,Object> valueInfo)
Description copied from interface: ValueType
Creates a new TypedValue using this type.

Specified by:
createValue in interface ValueType
Parameters:
value - the value
Returns:
the typed value for the value

getValueInfo

public Map<String,Object> getValueInfo(TypedValue typedValue)
Description copied from interface: ValueType
Get the value info for a TypedValue.

Specified by:
getValueInfo in interface ValueType
Returns:

isPrimitiveValueType

public boolean isPrimitiveValueType()
Description copied from interface: ValueType
Indicates whether this type is primitive valued. Primitive valued types can be handled natively by the process engine.

Specified by:
isPrimitiveValueType in interface ValueType
Returns:
true if this is a primitive valued type. False otherwise


Copyright © 2015 camunda services GmbH. All rights reserved.