public class SComponentFactory extends Object
Constructor and Description |
---|
SComponentFactory() |
Modifier and Type | Method and Description |
---|---|
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 |
getProperty(IExternalAccess exta,
String type,
String key)
Get a default icon for a file type.
|
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 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. a component).
|
static IFuture<IModelInfo> |
loadModel(IExternalAccess exta,
String model,
IResourceIdentifier rid)
Load an component model.
|
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 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 getProperty(IExternalAccess exta, String type, String key)
public static IFuture<String> getFileType(IExternalAccess exta, String model, IResourceIdentifier rid)
Copyright © 2012. All Rights Reserved.