@Service public class SchemaGenerationManagerImpl extends java.lang.Object implements SchemaGenerationManager, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SchemaGenerationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
generateCrossSectionalSchema(java.io.OutputStream out,
DataStructureSuperBean dsd,
java.lang.String targetNamespace,
DATA_TYPE schema,
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,
java.lang.String targetNamespace,
DATA_TYPE schema,
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.
|
public void generateSchema(java.io.OutputStream out, DataStructureSuperBean dsd, java.lang.String targetNamespace, DATA_TYPE schema, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
SchemaGenerationManager
generateSchema
in interface SchemaGenerationManager
out
- the OutputStream to write the schema to this is closed on completiondsd
- the DSD to generate the schema fortargetNamespace
- the target namespace to useschema
- the schema type to generateconstraintsMap
- the map key is the dimension id, values is the valid codes for the dimensionpublic void generateCrossSectionalSchema(java.io.OutputStream out, DataStructureSuperBean dsd, java.lang.String targetNamespace, DATA_TYPE schema, java.lang.String crossSectionalDimensionId, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
SchemaGenerationManager
generateCrossSectionalSchema
in interface SchemaGenerationManager
out
- the OutputStream to write the schema to this is closed on completiondsd
- the DSD to generate the schema fortargetNamespace
- the target namespace to useschema
- the schema type to generatecrossSectionalDimensionId
- 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 afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception