public class SComponentFactory extends Object
Constructor and Description |
---|
SComponentFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> IResultListener<T> |
createResultListener(IResultListener<T> listener,
IExternalAccess ea)
Create a result listener which is executed as an component step.
|
static IFuture<String> |
getFileType(IExternalAccess exta,
String model,
IResourceIdentifier rid)
Get the file type of a model.
|
static IFuture<byte[]> |
getFileTypeIcon(IExternalAccess exta,
String type)
Get a default icon for a file type.
|
static IFuture<Object> |
getProperty(IExternalAccess exta,
String type,
String key)
Get a default icon for a file type.
|
static boolean |
isComponentStepNecessary(IComponentIdentifier target)
Check if a component is necessary.
|
static IFuture<Boolean> |
isLoadable(IExternalAccess exta,
String model,
IResourceIdentifier rid)
Test if a model can be loaded by the factory.
|
static IFuture<Boolean> |
isModelType(IExternalAccess exta,
String model,
Collection<String> allowedtypes,
IResourceIdentifier rid)
Test if a model can be loaded by the factory.
|
static IFuture<Boolean> |
isStartable(IExternalAccess exta,
String model,
IResourceIdentifier rid)
Test if a model is startable (e.g.
|
static IFuture<IModelInfo> |
loadModel(IExternalAccess exta,
String model,
IResourceIdentifier rid)
Load an component model.
|
public static boolean isComponentStepNecessary(IComponentIdentifier target)
target
- The target component identifier.public static <T> IResultListener<T> createResultListener(IResultListener<T> listener, IExternalAccess ea)
The
- original listener to be called.public static IFuture<IModelInfo> loadModel(IExternalAccess exta, String model, IResourceIdentifier rid)
model
- The model.public static IFuture<Boolean> isLoadable(IExternalAccess exta, String model, IResourceIdentifier rid)
model
- The model.public static IFuture<Boolean> isModelType(IExternalAccess exta, String model, Collection<String> allowedtypes, IResourceIdentifier rid)
model
- The model.public static IFuture<Boolean> isStartable(IExternalAccess exta, String model, IResourceIdentifier rid)
model
- The model.public static IFuture<byte[]> getFileTypeIcon(IExternalAccess exta, String type)
public static IFuture<Object> getProperty(IExternalAccess exta, String type, String key)
public static IFuture<String> getFileType(IExternalAccess exta, String model, IResourceIdentifier rid)
Copyright © 2015. All Rights Reserved.