@Service public class SchemaWriterManagerImpl extends java.lang.Object implements SchemaWriterManager, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
SchemaWriterManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
generateCrossSectionalSchema(java.io.OutputStream out,
DataStructureSuperBean dsd,
SchemaFormat outputFormat,
java.lang.String targetNamespace,
java.lang.String crossSectionalDimensionId,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
Generates a cross-sectional schema in the format specified by the data type for the key family
which is written to the specified OutputStream.
|
void |
generateSchema(java.io.OutputStream out,
DataStructureSuperBean dsd,
SchemaFormat outputFormat,
java.lang.String targetNamespace,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
Generates a time-series schema in the format specified by the data type for the key family
which is written to the specified OutputStream.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void generateSchema(java.io.OutputStream out, DataStructureSuperBean dsd, SchemaFormat outputFormat, java.lang.String targetNamespace, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
SchemaWriterManager
generateSchema
in interface SchemaWriterManager
out
- the OutputStream to write the schema to this is closed on completiondsd
- the DSD to generate the schema fortargetNamespace
- the target namespace to useconstraintsMap
- the map key is the dimension id, values is the valid codes for the dimensionpublic void generateCrossSectionalSchema(java.io.OutputStream out, DataStructureSuperBean dsd, SchemaFormat outputFormat, java.lang.String targetNamespace, java.lang.String crossSectionalDimensionId, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
SchemaWriterManager
generateCrossSectionalSchema
in interface SchemaWriterManager
out
- the OutputStream to write the schema to this is closed on completiondsd
- the DSD to generate the schema fortargetNamespace
- the target namespace to usecrossSectionalDimensionId
- the id of the dimension that will be used at the observation levelconstraintsMap
- the map key is the dimension id, values is the valid codes for the dimensionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException