Class Schema.SchemaBuilder

java.lang.Object
org.ivoa.dm.registry.standard.Schema.SchemaBuilder
Enclosing class:
Schema

public static class Schema.SchemaBuilder extends Object
A builder class for Schema, mainly for use in the functional builder pattern.
  • Field Details

    • location

      public String location
      A URL pointing to a document that formally defines the schema. The document should be in a machine-parsable format when applicable. For example, when refering to an XML schema, the document should be an XML Schema or similar document that can be used to validate an instance document.
    • description

      public String description
      A human-readable description of what the schema defines or is used for. A brief description--e.g. one statement--is recommended for display purposes.
    • example

      public List<String> example
      A URL pointing to a sample document that illustrates the use of the schema. When applicable (e.g. XML), the document should be in the format defined by the schema document.
    • namespace

      public String namespace
      an identifier for the schema being described. Each instance of this attribute must be unique within the resourse description. For XML schemas, this should be the schema's namespace URI. Otherwise, it should be a unique label to distinguish it from other schemas described in the same resource description.
  • Constructor Details

    • SchemaBuilder

      public SchemaBuilder()
  • Method Details

    • create

      public Schema create()
      create a Schema from this builder.
      Returns:
      an object initialized from the builder.