public class ProcessingComponentSuite extends Object
IProcessingComponents used in Carrot2 applications.| Constructor and Description |
|---|
ProcessingComponentSuite() |
ProcessingComponentSuite(ArrayList<DocumentSourceDescriptor> sources,
ArrayList<ProcessingComponentDescriptor> algorithms) |
| Modifier and Type | Method and Description |
|---|---|
static ProcessingComponentSuite |
deserialize(IResource resource,
ResourceLookup resourceLookup)
Deserializes component suite information from an XML stream.
|
List<ProcessingComponentDescriptor> |
getAlgorithms()
Returns the internal list of algorithms.
|
ProcessingComponentConfiguration[] |
getComponentConfigurations()
Returns all processing component configurations available in this suite.
|
List<ProcessingComponentDescriptor> |
getComponents()
Returns all components available in this suite, including data sources, algorithms
and any other types.
|
List<DocumentSourceDescriptor> |
getSources()
Returns the internal list of document sources.
|
List<ProcessingComponentDescriptor> |
removeUnavailableComponents()
Remove components marked as unavailable from the suite.
|
void |
serialize(OutputStream stream)
Serializes this component suite as an UTF-8 encoded XML.
|
public ProcessingComponentSuite()
public ProcessingComponentSuite(ArrayList<DocumentSourceDescriptor> sources, ArrayList<ProcessingComponentDescriptor> algorithms)
public List<DocumentSourceDescriptor> getSources()
public List<ProcessingComponentDescriptor> getAlgorithms()
public List<ProcessingComponentDescriptor> getComponents()
public static ProcessingComponentSuite deserialize(IResource resource, ResourceLookup resourceLookup) throws Exception
resource - The resource to be deserialized (must not be null).resourceLookup - Resource lookup utilities for potential included resources.Exceptionpublic void serialize(OutputStream stream) throws Exception
Exceptionpublic List<ProcessingComponentDescriptor> removeUnavailableComponents()
public ProcessingComponentConfiguration[] getComponentConfigurations()