public class UtilitySchemaWriterEngine extends java.lang.Object implements SchemaWriterEngine
Constructor and Description |
---|
UtilitySchemaWriterEngine(SDMX_SCHEMA schemaVersion) |
Modifier and Type | Method and Description |
---|---|
void |
generateCrossSectionalSchema(java.io.OutputStream out,
DataStructureSuperBean dsd,
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,
java.lang.String targetNamespace,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> validCodes)
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 UtilitySchemaWriterEngine(SDMX_SCHEMA schemaVersion)
public void generateSchema(java.io.OutputStream out, DataStructureSuperBean dsd, java.lang.String targetNamespace, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> validCodes)
SchemaWriterEngine
generateSchema
in interface SchemaWriterEngine
out
- the OutputStream to write the schema to this is closed on completiondsd
- the DSD to generate the schema fortargetNamespace
- the target namespace to usevalidCodes
- 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, java.lang.String crossSectionalDimensionId, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> constraintsMap)
SchemaWriterEngine
generateCrossSectionalSchema
in interface SchemaWriterEngine
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 dimension