public class OutputServiceImpl extends Object implements OutputService
| Constructor and Description |
|---|
OutputServiceImpl() |
OutputServiceImpl(Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
Output |
generateDefaultOutput(Aggregate aggregate)
Returns an output of a specific type for an aggregate.
|
String |
getArtifact(Output output,
Class<? extends ArtifactGenerator> artifactGenerator)
returns the artifact of an output.
|
List<ArtifactGenerator> |
getArtifactGenerators() |
String |
getFullArtifact(List<? extends Output> outputs,
Class<? extends ArtifactGenerator> artifactGenerator)
returns the full artifact of a list of outputs of a single output type.
|
List<OutputFactory> |
getOutputFactories() |
Class<? extends ArtifactGenerator>[] |
getSupportedArtifactGeneratorClasses()
returns a list of supported artifact generator classes
that the output service supports.
|
void |
init(Schema schema)
set the state of this service (eventually this service will be stateless, but for now..)
|
void |
setArtifactGenerators(List<ArtifactGenerator> artifactGenerators) |
void |
setOutputFactories(List<OutputFactory> outputFactories) |
void |
setSchema(Schema schema) |
public OutputServiceImpl()
public OutputServiceImpl(Schema schema)
public void setOutputFactories(List<OutputFactory> outputFactories)
public void setArtifactGenerators(List<ArtifactGenerator> artifactGenerators)
public List<OutputFactory> getOutputFactories()
public List<ArtifactGenerator> getArtifactGenerators()
public void setSchema(Schema schema)
public Class<? extends ArtifactGenerator>[] getSupportedArtifactGeneratorClasses()
OutputServicegetSupportedArtifactGeneratorClasses in interface OutputServicepublic String getArtifact(Output output, Class<? extends ArtifactGenerator> artifactGenerator) throws OutputValidationException
OutputServicegetArtifact in interface OutputServiceoutput - output objectOutputValidationExceptionpublic String getFullArtifact(List<? extends Output> outputs, Class<? extends ArtifactGenerator> artifactGenerator) throws OutputValidationException
OutputServicegetFullArtifact in interface OutputServiceoutputs - a list of outputsOutputValidationExceptionpublic Output generateDefaultOutput(Aggregate aggregate) throws OutputValidationException
OutputServiceNote that in the future this call may require additional parameters, to override the default behavior.
generateDefaultOutput in interface OutputServiceaggregate - aggregate objectOutputValidationExceptionpublic void init(Schema schema)
OutputServiceinit in interface OutputServiceschema - olap schemaCopyright © 2006–2016 Julian Hyde. All rights reserved.