Class MetaDataFileXSDWriter
java.lang.Object
com.metaobjects.io.MetaDataWriter
com.metaobjects.generator.GeneratorIOWriter<MetaDataFileXSDWriter>
com.metaobjects.generator.direct.metadata.xml.XMLDirectWriter<MetaDataFileXSDWriter>
com.metaobjects.generator.direct.metadata.file.xsd.MetaDataFileXSDWriter
- All Implemented Interfaces:
com.metaobjects.io.MetaDataIO
v6.1.0: Registry-driven XSD Schema writer that creates schemas for validating metadata files.
This generates XSD Schema that validates the structure of metadata XML files using dynamic
type discovery from the TypeDefinition registry.
Features:
- Dynamic type enumeration from MetaDataRegistry
- Inheritance-aware type definitions with annotations
- Type-specific attribute validation
- Automatic plugin type support
- No hardcoded type lists
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDataFileXSDWriter(com.metaobjects.loader.MetaDataLoader loader, OutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionaddConstraintFile(String constraintFile) Deprecated.toString()withElementFormDefault(String elementFormDefault) withNamespace(String nameSpace) withTargetNamespace(String targetNamespace) voidwriteXML()Methods inherited from class com.metaobjects.generator.direct.metadata.xml.XMLDirectWriter
close, createDocument, doc, writeDocumentMethods 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
-
MetaDataFileXSDWriter
public MetaDataFileXSDWriter(com.metaobjects.loader.MetaDataLoader loader, OutputStream out) throws GeneratorIOException - Throws:
GeneratorIOException
-
-
Method Details
-
withNamespace
-
withTargetNamespace
-
withElementFormDefault
-
addConstraintFile
Deprecated. -
toString
- Overrides:
toStringin classGeneratorIOWriter<MetaDataFileXSDWriter>
-
writeXML
- Specified by:
writeXMLin classXMLDirectWriter<MetaDataFileXSDWriter>- Throws:
GeneratorIOException
-