Class FileValueTypeImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
org.camunda.bpm.engine.variable.impl.type.FileValueTypeImpl
- All Implemented Interfaces:
Serializable
,FileValueType
,ValueType
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:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
name
Fields inherited from interface org.camunda.bpm.engine.variable.type.FileValueType
VALUE_INFO_FILE_ENCODING, VALUE_INFO_FILE_MIME_TYPE, VALUE_INFO_FILE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateValue
(Object value, Map<String, Object> valueInfo) Creates a new TypedValue using this type.getValueInfo
(TypedValue typedValue) Get the value info (meta data) for aTypedValue
.boolean
Indicates whether this type is primitive valued.Methods inherited from class org.camunda.bpm.engine.variable.impl.type.AbstractValueTypeImpl
canConvertFromTypedValue, convertFromTypedValue, equals, getName, getParent, hashCode, isAbstract, isTransient, toString, unsupportedConversion
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.variable.type.ValueType
canConvertFromTypedValue, convertFromTypedValue, getName, getParent, isAbstract
-
Constructor Details
-
FileValueTypeImpl
public FileValueTypeImpl()
-
-
Method Details
-
createValue
Description copied from interface:ValueType
Creates a new TypedValue using this type.- Specified by:
createValue
in interfaceValueType
- Parameters:
value
- the value- Returns:
- the typed value for the value
-
getValueInfo
Description copied from interface:ValueType
Get the value info (meta data) for aTypedValue
. The keys of the returned map for aTypedValue
are available as constants in the value'sValueType
interface.- Specified by:
getValueInfo
in interfaceValueType
- 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 interfaceValueType
- Returns:
- true if this is a primitive valued type. False otherwise
-