Package | Description |
---|---|
org.apache.taverna.invocation |
Contains classes supporting workflow invocation.
|
org.apache.taverna.invocation.impl | |
org.apache.taverna.reference |
Interfaces for the Taverna 2 reference manager.
|
org.apache.taverna.reference.impl |
Implementation of the reference manager APIs backed by Hibernate.
|
org.apache.taverna.reference.impl.external.file |
Support for references to a file on a local (or otherwise mounted)
filesystem
|
org.apache.taverna.reference.impl.external.http |
Support for references to a URL with the HTTP protocol
|
org.apache.taverna.reference.impl.external.object |
Support for representation of inlined objects as references.
|
org.apache.taverna.t2referencetest |
Modifier and Type | Interface and Description |
---|---|
interface |
InvocationContext
Carries the context of a workflow invocation, the necessary data manager,
security agents and any other resource shared across the invocation such as
provenance injectors.
|
Modifier and Type | Class and Description |
---|---|
class |
InvocationContextImpl |
Modifier and Type | Method and Description |
---|---|
Set<ExternalReferenceSPI> |
ReferenceSetAugmentor.augmentReferenceSet(ReferenceSet references,
Set<Class<ExternalReferenceSPI>> targetReferenceTypes,
ReferenceContext context)
Attempts to modify the supplied ReferenceSet such that it contains an
implementation of at least one of the ExternalReferenceSPI classes
specified.
|
void |
ReferenceSetAugmentor.augmentReferenceSetAsynch(ReferenceSet references,
Set<Class<ExternalReferenceSPI>> targetReferenceTypes,
ReferenceContext context,
ReferenceSetAugmentorCallback callback)
As with
ReferenceSetAugmentor.augmentReferenceSet(ReferenceSet, Set, ReferenceContext)
but called in an asynchronous fashion. |
boolean |
ValueToReferenceConverterSPI.canConvert(Object o,
ReferenceContext context)
Can this SPI implementation convert the specified object to an
ExternalReferenceSPI? This test should be as lightweight as possible, and
will usually be based on the Class of the object supplied.
|
ExternalReferenceSPI |
ValueToReferenceConverterSPI.convert(Object o,
ReferenceContext context)
Construct and return a new ExternalReferenceSPI implementation which is
in some way equivalent to the supplied object.
|
TargetType |
ExternalReferenceBuilderSPI.createReference(InputStream byteStream,
ReferenceContext context)
Given a stream of bytes, build the appropriate target
ExternalReferenceSPI implementation which would de-reference to the value
of that stream and return it.
|
TargetType |
ExternalReferenceTranslatorSPI.createReference(SourceType sourceReference,
ReferenceContext context)
Given an existing ExternalReferenceSPI, build the appropriate target
ExternalReferenceSPI implementation and return it.
|
ReferenceSet |
ReferenceSetService.getReferenceSetWithAugmentation(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context)
Functionality the same as
getReferenceSet but with the additional option to specify a set of
ExternalReferenceSPI classes. |
void |
ReferenceSetService.getReferenceSetWithAugmentationAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceSetServiceCallback callback)
Functionality as
getReferenceSetWithAugmentation but with the addition of a callback
interface to report the result or failure of the method. |
boolean |
ExternalReferenceTranslatorSPI.isEnabled(ReferenceContext context)
Because the reference translator may rely on facilities provided to it
through the context this method is available to check whether these
facilities are sufficient.
|
boolean |
ExternalReferenceBuilderSPI.isEnabled(ReferenceContext context)
Because the reference builder may rely on facilities provided to it
through the context this method is available to check whether these
facilities are sufficient.
|
T2Reference |
T2ReferenceGenerator.nextErrorDocumentReference(int depth,
ReferenceContext context)
Create a new and otherwise unused T2Reference to an ErrorDocument.
|
T2Reference |
T2ReferenceGenerator.nextListReference(boolean containsErrors,
int listDepth,
ReferenceContext context)
Create a new and otherwise unused T2Reference to an IdentifiedList.
|
T2Reference |
T2ReferenceGenerator.nextReferenceSetReference(ReferenceContext context)
Create a new and otherwise unused T2Reference to a ReferenceSet.
|
InputStream |
ExternalReferenceSPI.openStream(ReferenceContext context)
Open and return an InputStream to the data referenced using, if required,
any facilities within the supplied context.
|
T2Reference |
ReferenceService.register(Object o,
int targetDepth,
boolean useConverterSPI,
ReferenceContext context)
The top level registration method is used to register either as yet
unregistered ErrorDocuments and ReferenceSets (if these are passed in and
already have an identifier this call does nothing) and arbitrarily nested
Lists of the same.
|
IdentifiedList<T2Reference> |
ListService.registerEmptyList(int depth,
ReferenceContext context)
Register a new empty list with the specified depth.
|
ErrorDocument |
ErrorDocumentService.registerError(String message,
int depth,
ReferenceContext context)
Equivalent to
registerError(message, null, depth, context) . |
ErrorDocument |
ErrorDocumentService.registerError(String message,
Set<T2Reference> errors,
int depth,
ReferenceContext context)
Register a new error document.
|
ErrorDocument |
ErrorDocumentService.registerError(String message,
Throwable t,
int depth,
ReferenceContext context)
Register a new error document.
|
ErrorDocument |
ErrorDocumentService.registerError(Throwable t,
int depth,
ReferenceContext context)
Equivalent to
registerError("", t, depth, context) . |
IdentifiedList<T2Reference> |
ListService.registerList(List<T2Reference> items,
ReferenceContext context)
Register a new list of T2References.
|
ReferenceSet |
ReferenceSetService.registerReferenceSet(Set<ExternalReferenceSPI> references,
ReferenceContext context)
Register a set of
ExternalReferenceSPI instances, all of which
should point to byte equivalent data, and return the newly created
ReferenceSet . |
Object |
ReferenceService.renderIdentifier(T2Reference id,
Class<?> leafClass,
ReferenceContext context)
Resolve the given identifier, building a POJO structure where the
non-list items are of the desired class.
|
Identified |
ReferenceService.resolveIdentifier(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context)
Perform recursive identifier resolution, building a collection structure
of Identified objects, any collection elements being IdentifiedLists of
Identified subclasses.
|
void |
ReferenceService.resolveIdentifierAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceServiceResolutionCallback callback)
As resolveIdentifier but using a callback object and returning
immediately
|
Modifier and Type | Class and Description |
---|---|
class |
EmptyReferenceContext
A trivial implementation of ReferenceContext, used if the context parameter
to any service method is null.
|
Modifier and Type | Method and Description |
---|---|
Set<ExternalReferenceSPI> |
ReferenceSetAugmentorImpl.augmentReferenceSet(ReferenceSet references,
Set<Class<ExternalReferenceSPI>> targetReferenceTypes,
ReferenceContext context) |
void |
ReferenceSetAugmentorImpl.augmentReferenceSetAsynch(ReferenceSet references,
Set<Class<ExternalReferenceSPI>> targetReferenceTypes,
ReferenceContext context,
ReferenceSetAugmentorCallback callback) |
Set<ExternalReferenceSPI> |
TranslationPath.doTranslation(ReferenceSet rs,
ReferenceContext context) |
ReferenceSet |
ReferenceSetServiceImpl.getReferenceSetWithAugmentation(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context) |
void |
AbstractReferenceSetServiceImpl.getReferenceSetWithAugmentationAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceSetServiceCallback callback)
Functionality as
getReferenceSetWithAugmentation but with the addition of a callback
interface to report the result or failure of the method. |
T2Reference |
AbstractT2ReferenceGenerator.nextErrorDocumentReference(int depth,
ReferenceContext context) |
T2Reference |
AbstractT2ReferenceGenerator.nextListReference(boolean containsErrors,
int listDepth,
ReferenceContext context) |
T2Reference |
AbstractT2ReferenceGenerator.nextReferenceSetReference(ReferenceContext context) |
T2Reference |
ReferenceServiceImpl.register(Object o,
int targetDepth,
boolean useConverterSPI,
ReferenceContext context)
The top level registration method is used to register either as yet
unregistered ErrorDocuments and ReferenceSets (if these are passed in and
already have an identifier this call does nothing) and arbitrarily nested
Lists of the same.
|
IdentifiedList<T2Reference> |
ListServiceImpl.registerEmptyList(int depth,
ReferenceContext context) |
ErrorDocument |
AbstractErrorDocumentServiceImpl.registerError(String message,
int depth,
ReferenceContext context) |
ErrorDocument |
ErrorDocumentServiceImpl.registerError(String message,
Set<T2Reference> errors,
int depth,
ReferenceContext context) |
ErrorDocument |
ErrorDocumentServiceImpl.registerError(String message,
Throwable t,
int depth,
ReferenceContext context)
Register the specified error and any child errors (which have the same
namespace and local part but a lower depth, down to depth of zero
|
ErrorDocument |
AbstractErrorDocumentServiceImpl.registerError(Throwable t,
int depth,
ReferenceContext context) |
IdentifiedList<T2Reference> |
ListServiceImpl.registerList(List<T2Reference> items,
ReferenceContext context) |
ReferenceSet |
ReferenceSetServiceImpl.registerReferenceSet(Set<ExternalReferenceSPI> references,
ReferenceContext context) |
Object |
ReferenceServiceImpl.renderIdentifier(T2Reference id,
Class<?> leafClass,
ReferenceContext context) |
Identified |
ReferenceServiceImpl.resolveIdentifier(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context)
Perform recursive identifier resolution, building a collection structure
of Identified objects, any collection elements being IdentifiedLists of
Identified subclasses.
|
void |
AbstractReferenceServiceImpl.resolveIdentifierAsynch(T2Reference id,
Set<Class<ExternalReferenceSPI>> ensureTypes,
ReferenceContext context,
ReferenceServiceResolutionCallback callback)
Wraps the synchronous form, using the executeRunnable method to schedule
it.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FileToFileReference.canConvert(Object o,
ReferenceContext context) |
ExternalReferenceSPI |
FileToFileReference.convert(Object o,
ReferenceContext context)
Return a FileReference
|
InputStream |
FileReference.openStream(ReferenceContext context)
Open and return an InputStream to the data referenced using, if required,
any facilities within the supplied context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
UrlToHttpReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of java.net.URL and the protocol
is HTTP
|
ExternalReferenceSPI |
UrlToHttpReference.convert(Object o,
ReferenceContext context)
Return a new HttpReference constructed from
((URL)o).toExternalForm() |
InputStream |
HttpReference.openStream(ReferenceContext context)
Return the data at the
URL represented by this external reference |
Modifier and Type | Method and Description |
---|---|
boolean |
StringToStringReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of java.lang.String
|
boolean |
NumberToStringReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of java.lang.Number
|
boolean |
CharacterToStringReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of java.lang.Character
|
boolean |
ByteArrayToByteArrayReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of byte[]
|
boolean |
BooleanToStringReference.canConvert(Object o,
ReferenceContext context)
Can convert if the object is an instance of java.lang.Boolean
|
ExternalReferenceSPI |
StringToStringReference.convert(Object o,
ReferenceContext context)
Return a new InlineStringReference wrapping the supplied String
|
ExternalReferenceSPI |
NumberToStringReference.convert(Object o,
ReferenceContext context)
Return a new InlineStringReference wrapping the supplied String
|
ExternalReferenceSPI |
CharacterToStringReference.convert(Object o,
ReferenceContext context)
Return a new
InlineStringReference wrapping the supplied String |
ExternalReferenceSPI |
ByteArrayToByteArrayReference.convert(Object o,
ReferenceContext context)
Return a new InlineByteArrayReference wrapping the supplied byte[]
|
ExternalReferenceSPI |
BooleanToStringReference.convert(Object o,
ReferenceContext context)
Return a new InlineStringReference wrapping the supplied String
|
InlineStringReference |
InlineByteToInlineStringTranslator.createReference(InlineByteArrayReference sourceReference,
ReferenceContext context) |
InlineByteArrayReference |
InlineStringToInlineByteTranslator.createReference(InlineStringReference sourceReference,
ReferenceContext context) |
InlineStringReference |
InlineStringReferenceBuilder.createReference(InputStream byteStream,
ReferenceContext context) |
InlineByteArrayReference |
InlineByteArrayReferenceBuilder.createReference(InputStream byteStream,
ReferenceContext context) |
boolean |
InlineStringToInlineByteTranslator.isEnabled(ReferenceContext context) |
boolean |
InlineStringReferenceBuilder.isEnabled(ReferenceContext context) |
boolean |
InlineByteToInlineStringTranslator.isEnabled(ReferenceContext context) |
boolean |
InlineByteArrayReferenceBuilder.isEnabled(ReferenceContext context) |
InputStream |
VMObjectReference.openStream(ReferenceContext context) |
InputStream |
InlineStringReference.openStream(ReferenceContext arg0)
Fakes a de-reference operation, returning a byte stream over the string
data.
|
InputStream |
InlineByteArrayReference.openStream(ReferenceContext context) |
Modifier and Type | Method and Description |
---|---|
RedReference |
GreenToRed.createReference(GreenReference ref,
ReferenceContext context) |
GreenReference |
GreenBuilder.createReference(InputStream is,
ReferenceContext context)
Construct a new GreenReference from the given input stream, ignoring the
otherwise helpful context as we don't need any resources from it.
|
boolean |
GreenToRed.isEnabled(ReferenceContext arg0) |
boolean |
GreenBuilder.isEnabled(ReferenceContext arg0)
Doesn't use any context resources so is always enabled
|
InputStream |
RedReference.openStream(ReferenceContext arg0)
Fakes a de-reference operation, returning a byte stream over the string
data.
|
InputStream |
YellowReference.openStream(ReferenceContext arg0)
Fakes a de-reference operation, returning a byte stream over the string
data.
|
InputStream |
GreenReference.openStream(ReferenceContext arg0)
Fakes a de-reference operation, returning a byte stream over the string
data.
|
InputStream |
BlueReference.openStream(ReferenceContext arg0)
Fakes a de-reference operation, returning a byte stream over the string
data.
|
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.