Package org.ivoa.dm.registry.standard
Class Schema.SchemaBuilder
java.lang.Object
org.ivoa.dm.registry.standard.Schema.SchemaBuilder
- Enclosing class:
 - Schema
 
A builder class for Schema, mainly for use in the functional builder pattern.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionA human-readable description of what the schema defines or is used for.A URL pointing to a sample document that illustrates the use of the schema.A URL pointing to a document that formally defines the schema.an identifier for the schema being described. - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
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
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
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
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
create a Schema from this builder.- Returns:
 - an object initialized from the builder.
 
 
 -