public class ActivityInputPortImpl extends AbstractPort implements ActivityInputPort
depth, name
Constructor and Description |
---|
ActivityInputPortImpl(String portName,
int portDepth)
Constructs an Activity input port instance with the provided name and
depth.
|
ActivityInputPortImpl(String portName,
int portDepth,
boolean allowsLiteralValues,
List<Class<? extends ExternalReferenceSPI>> handledReferenceSchemes,
Class<?> translatedElementClass)
Constructs an Activity input port with the provided name and depth,
together with a list of predetermined annotations.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsLiteralValues()
Literal values are a special case as they are not represented by
reference schemes - in rare cases activities may choose to deny literal
values, forcing *all* their inputs to be in a particular reference
scheme.
|
List<Class<? extends ExternalReferenceSPI>> |
getHandledReferenceSchemes()
Declares that the DataDocument instances fed as input data (either
directly or as elements of a collection) to this input port must contain
at least one of the specified ReferenceScheme types.
|
Class<?> |
getTranslatedElementClass()
The Java object type desired when the input data reference is converted
to an object.
|
getDepth, getName, toString
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
public ActivityInputPortImpl(String portName, int portDepth)
portName
- portDepth
- public ActivityInputPortImpl(String portName, int portDepth, boolean allowsLiteralValues, List<Class<? extends ExternalReferenceSPI>> handledReferenceSchemes, Class<?> translatedElementClass)
portName
- portDepth
- public boolean allowsLiteralValues()
ActivityInputPort
allowsLiteralValues
in interface ActivityInputPort
public List<Class<? extends ExternalReferenceSPI>> getHandledReferenceSchemes()
ActivityInputPort
getHandledReferenceSchemes
in interface ActivityInputPort
public Class<?> getTranslatedElementClass()
ActivityInputPort
Note that this is not intended to allow activities to consume arbitrary java classes, activities such as the API consumer should handle this through the reference scheme mechanism backed by an appropriate store (most likely an in-memory hash of active objects)
getTranslatedElementClass
in interface ActivityInputPort
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.