Class Content.ContentBuilder

java.lang.Object
org.ivoa.dm.registry.voresource.Content.ContentBuilder
Enclosing class:
Content

public static class Content.ContentBuilder extends Object
A builder class for Content, mainly for use in the functional builder pattern.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Description of the content level or intended audience.
    An account of the nature of the resource The description may include but is not limited to an abstract, table of contents, reference to a graphical representation of content or a free-text account of the content.
    URL pointing to a human-readable document describing this resource.
    a description of a relationship to another resource.
    a bibliographic reference from which the present resource is derived or extracted.
    a topic, object type, or other descriptive keywords about the resource.
    Nature or genre of the content of the resource.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create a Content from this builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • subject

      public List<String> subject
      a topic, object type, or other descriptive keywords about the resource. Terms for Subject should be drawn from the Unified Astronomy Thesaurus (http://astrothesaurus.org).
    • description

      public String description
      An account of the nature of the resource The description may include but is not limited to an abstract, table of contents, reference to a graphical representation of content or a free-text account of the content. Note that description is xs:string-typed, which means that whitespace is considered significant. Clients should render empty lines as paragraph boundaries and ideally refrain from reflowing material that looks formatted (i.e., is broken to about 80-character lines).
    • source

      public Source source
      a bibliographic reference from which the present resource is derived or extracted. This is intended to point to an article in the published literature. An ADS Bibcode is recommended as a value when available.
    • referenceURL

      public String referenceURL
      URL pointing to a human-readable document describing this resource.
    • type

      public List<String> type
      Nature or genre of the content of the resource. Values for type should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_type .
    • contentLevel

      public List<String> contentLevel
      Description of the content level or intended audience. Values for contentLevel should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_level.
    • relationship

      public List<Relationship> relationship
      a description of a relationship to another resource.
  • Constructor Details

    • ContentBuilder

      public ContentBuilder()
  • Method Details

    • create

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