|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.core.ProcessingComponentSuite
public class ProcessingComponentSuite
A set of IProcessingComponents used in Carrot2 applications.
| Constructor Summary | |
|---|---|
ProcessingComponentSuite()
|
|
ProcessingComponentSuite(ArrayList<DocumentSourceDescriptor> sources,
ArrayList<ProcessingComponentDescriptor> algorithms)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessingComponentSuite()
public ProcessingComponentSuite(ArrayList<DocumentSourceDescriptor> sources,
ArrayList<ProcessingComponentDescriptor> algorithms)
| Method Detail |
|---|
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.
Exception
public void serialize(OutputStream stream)
throws Exception
Exceptionpublic List<ProcessingComponentDescriptor> removeUnavailableComponents()
ProcessingComponentDescriptor.isComponentAvailable()public ProcessingComponentConfiguration[] getComponentConfigurations()
Controller.init(Map, ProcessingComponentConfiguration...)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||