Uses of Enum
dev.metaschema.databind.io.Format
Packages that use Format
Package
Description
Provides a collection of abstract and concrete command line interface (CLI)
commands that process Metaschema module-based information.
Support for parsing Metaschema module-based data using Java class bindings.
Provides core functionality for reading and writing Metaschema instance data
to and from bound Java objects.
Provides testing utilities for Metaschema modules and constraints.
-
Uses of Format in dev.metaschema.cli.commands
Methods in dev.metaschema.cli.commands that return FormatModifier and TypeMethodDescriptionstatic FormatMetaschemaCommands.determineSourceFormat(org.apache.commons.cli.CommandLine commandLine, org.apache.commons.cli.Option option, IBoundLoader loader, URI resource) Detect the source format for content identified using the provided option.static FormatMetaschemaCommands.getFormat(org.apache.commons.cli.CommandLine commandLine, org.apache.commons.cli.Option option) Parse the command line options to get the selected format.Methods in dev.metaschema.cli.commands with parameters of type FormatModifier and TypeMethodDescriptionprotected abstract voidAbstractConvertSubcommand.AbstractConversionCommandExecutor.handleConversion(URI source, Format toFormat, Writer writer, IBoundLoader loader) Called to perform a content conversion. -
Uses of Format in dev.metaschema.databind
Methods in dev.metaschema.databind with parameters of type FormatModifier and TypeMethodDescription<CLASS extends IBoundObject>
IDeserializer<CLASS>DefaultBindingContext.newDeserializer(Format format, Class<CLASS> clazz) Gets a dataIDeserializerwhich can be used to read Java instance data for the provided class from the requested format.<CLASS extends IBoundObject>
IDeserializer<CLASS>IBindingContext.newDeserializer(Format format, Class<CLASS> clazz) Gets a dataIDeserializerwhich can be used to read Java instance data for the provided class from the requested format.<CLASS extends IBoundObject>
ISerializer<CLASS>DefaultBindingContext.newSerializer(Format format, Class<CLASS> clazz) Gets a dataISerializerwhich can be used to write Java instance data for the provided class in the requested format.<CLASS extends IBoundObject>
ISerializer<CLASS>IBindingContext.newSerializer(Format format, Class<CLASS> clazz) Gets a dataISerializerwhich can be used to write Java instance data for the provided class in the requested format.default IValidationResultIBindingContext.validate(URI target, Format asFormat, IBindingContext.ISchemaValidationProvider schemaProvider, IConfiguration<ValidationFeature<?>> config) Load and perform schema and constraint validation on the target.default IValidationResultIBindingContext.ISchemaValidationProvider.validateWithSchema(URI target, Format asFormat, IBindingContext bindingContext) Validate the target resource. -
Uses of Format in dev.metaschema.databind.io
Methods in dev.metaschema.databind.io that return FormatModifier and TypeMethodDescriptionDefaultBoundLoader.detectFormat(URI uri) default FormatIBoundLoader.detectFormat(File file) Determine the format of the provided resource.IBoundLoader.detectFormat(URI uri) Determine the format of the resource identified by the provideduri.default FormatIBoundLoader.detectFormat(URL url) Determine the format of the provided resource.default FormatIBoundLoader.detectFormat(Path path) Determine the format of the provided resource.FormatDetector.Result.getFormat()Get the detected format.ValidationContext.getFormat()Get the format being parsed.static FormatReturns the enum constant of this type with the specified name.static Format[]Format.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in dev.metaschema.databind.io with parameters of type FormatModifier and TypeMethodDescriptiondefault <CLASS extends IBoundObject>
voidIBoundLoader.convert(URI source, OutputStream os, Format toFormat, Class<CLASS> rootClass) Auto convert the providedsourceto the providedtoFormat.default <CLASS extends IBoundObject>
voidAuto convert the providedsourceto the providedtoFormat.default <CLASS extends IBoundObject>
voidAuto convert the providedsourceto the providedtoFormat.default <CLASS extends IBoundObject>
voidIBoundLoader.convert(Path source, OutputStream os, Format toFormat, Class<CLASS> rootClass) Auto convert the providedsourceto the providedtoFormat.default <CLASS extends IBoundObject>
voidAuto convert the providedsourceto the providedtoFormat.@Owning ModelDetector.ResultModelDetector.detect(@Owning InputStream inputStream, URI resource, Format format) Analyzes the data from the providedinputStreamto determine it's model.@Owning ModelDetector.ResultDefaultBoundLoader.detectModel(InputStream is, URI resource, Format format) IBoundLoader.detectModel(InputStream is, URI resource, Format format) Determine the model of the provided resource.<CLASS extends IBoundObject>
CLASSDefaultBoundLoader.load(Class<CLASS> clazz, Format format, InputStream is, URI documentUri) <CLASS extends IBoundObject>
CLASSIBoundLoader.load(Class<CLASS> clazz, Format format, InputStream is, URI resource) Load data from the specified resource into a bound object with the type of the specified Java class.DefaultBoundLoader.loadAsNodeItem(Format format, InputStream is, URI resource) DefaultBoundLoader.loadAsNodeItem(Format format, URI uri) IBoundLoader.loadAsNodeItem(Format format, InputStream is, URI resource) Load data expressed using the providedformatand return that data as a Metapath node item.IBoundLoader.loadAsNodeItem(Format format, URI uri) Load data expressed using the providedformatand return that data as a Metapath node item.default IDocumentNodeItemIBoundLoader.loadAsNodeItem(Format format, Path path) Load data expressed using the providedformatand return that data as a Metapath node item.static ValidationContextValidationContext.of(URI source, IResourceLocation location, String path, Format format) Create a new validation context.static ValidationContextValidationContext.ofUnknownLocation(URI source, String path, Format format) Create a validation context with unknown location.static IPathFormatterFormat.resolvePathFormatter(PathFormatSelection selection, Format format) Resolve the path formatter based on the selection and document format. -
Uses of Format in dev.metaschema.model.testing
Methods in dev.metaschema.model.testing that return FormatModifier and TypeMethodDescriptionprotected abstract FormatAbstractTestSuite.getRequiredContentFormat()Get the content format used by the test suite.