Class AbstractServiceManager.TypedDataConnection
java.lang.Object
de.iip_ecosphere.platform.services.AbstractServiceManager.TypedDataConnection
- All Implemented Interfaces:
TypedDataConnectorDescriptor,TypedDataDescriptor
- Enclosing class:
AbstractServiceManager<A extends AbstractArtifactDescriptor<S>,S extends AbstractServiceDescriptor<A>>
public static class AbstractServiceManager.TypedDataConnection
extends Object
implements TypedDataConnectorDescriptor
Wraps a
TypedDataConnectorDescriptor to adjust the service (depending from the direction of
traversal/creation).- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TypedDataConnectorDescriptorprivate booleanprivate String -
Constructor Summary
ConstructorsConstructorDescriptionTypedDataConnection(TypedDataConnectorDescriptor connector, String service, boolean isInput) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionThe description of the element.Returns the function at the containing service associated with this relation.getId()Returns the id of the connector.getName()The name of the element.Returns the id of the service this connector is pointing to/coming from.Class<?> getType()The type of the element.booleanisInput()Is this an input connector.booleanisOutput()Is this an output connector.
-
Field Details
-
connector
-
service
-
isInput
private boolean isInput
-
-
Constructor Details
-
TypedDataConnection
Creates an instance.- Parameters:
connector- the connector to be wrappedservice- the service id to override the service id inconnector, may be null for the result ofTypedDataConnectorDescriptor.getService()isInput- whether this is an input connection
-
-
Method Details
-
getName
Description copied from interface:TypedDataDescriptorThe name of the element.- Specified by:
getNamein interfaceTypedDataDescriptor- Returns:
- the name
-
getService
Description copied from interface:TypedDataConnectorDescriptorReturns the id of the service this connector is pointing to/coming from.- Specified by:
getServicein interfaceTypedDataConnectorDescriptor- Returns:
- the service id, may be null or empty for none
-
getType
Description copied from interface:TypedDataDescriptorThe type of the element.- Specified by:
getTypein interfaceTypedDataDescriptor- Returns:
- the type, either a standard java class or a dynamic proxy for types declared by the services that are not available in this (execution/platform) environment
-
getDescription
Description copied from interface:TypedDataDescriptorThe description of the element.- Specified by:
getDescriptionin interfaceTypedDataDescriptor- Returns:
- the description, may be empty
-
getId
Description copied from interface:TypedDataConnectorDescriptorReturns the id of the connector. Depending on the implementation, id may be the same asTypedDataDescriptor.getName()or differ, e.g, ifTypedDataDescriptor.getName()points to a technical channel name.- Specified by:
getIdin interfaceTypedDataConnectorDescriptor- Returns:
- the id
-
isInput
public boolean isInput()Is this an input connector.- Returns:
truefor an input connector,falsefor an output connector
-
isOutput
public boolean isOutput()Is this an output connector.- Returns:
truefor an output connector,falsefor an input connector
-
getFunction
Description copied from interface:TypedDataConnectorDescriptorReturns the function at the containing service associated with this relation.- Specified by:
getFunctionin interfaceTypedDataConnectorDescriptor- Returns:
- the function name (may be null or empty for implicit functions that shall not be exibited)
-