Class MetaDataFileSchemaWriter
java.lang.Object
com.metaobjects.io.MetaDataWriter
com.metaobjects.generator.GeneratorIOWriter<MetaDataFileSchemaWriter>
com.metaobjects.generator.direct.metadata.json.JsonDirectWriter<MetaDataFileSchemaWriter>
com.metaobjects.generator.direct.metadata.file.json.MetaDataFileSchemaWriter
- All Implemented Interfaces:
com.metaobjects.io.MetaDataIO
v6.1.0: Registry-driven JSON Schema writer that creates schemas for validating metadata files.
This generates JSON Schema that validates the structure of metadata JSON files using dynamic
type discovery from the TypeDefinition registry.
Features:
- Dynamic type enumeration from MetaDataRegistry
- Inheritance-aware attribute schemas
- Type-specific child requirement validation
- Automatic plugin type support
- No hardcoded type lists
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDataFileSchemaWriter(com.metaobjects.loader.MetaDataLoader loader, OutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionaddConstraintFile(String constraintFile) Deprecated.toString()withDescription(String description) withSchemaId(String schemaId) withSchemaVersion(String schemaVersion) voidMethods inherited from class com.metaobjects.generator.direct.metadata.json.JsonDirectWriter
close, getGson, getJsonObject, setGson, setJsonObject, writeJsonToStreamMethods inherited from class com.metaobjects.generator.GeneratorIOWriter
getFilename, getFilters, getName, getToStringOptions, withFilename, withFilters, withNameMethods inherited from class com.metaobjects.io.MetaDataWriter
getLoader, path
-
Constructor Details
-
MetaDataFileSchemaWriter
public MetaDataFileSchemaWriter(com.metaobjects.loader.MetaDataLoader loader, OutputStream out) throws GeneratorIOException - Throws:
GeneratorIOException
-
-
Method Details
-
withSchemaVersion
-
withSchemaId
-
withTitle
-
withDescription
-
addConstraintFile
Deprecated. -
toString
- Overrides:
toStringin classGeneratorIOWriter<MetaDataFileSchemaWriter>
-
writeJson
- Specified by:
writeJsonin classJsonDirectWriter<MetaDataFileSchemaWriter>- Throws:
GeneratorIOException
-