Class Content.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.resource.Content.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Enclosing class:
Content

public static class Content.Builder<_B> extends Object implements com.kscs.util.jaxb.Buildable
  • Field Details

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Content _storedValue
  • Constructor Details

    • Builder

      public Builder(_B _parentBuilder, Content _other, boolean _copy)
    • Builder

      public Builder(_B _parentBuilder, Content _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse)
  • Method Details

    • end

      public _B end()
    • init

      protected <_P extends Content> _P init(_P _product)
    • addSubjects

      public Content.Builder<_B> addSubjects(Iterable<? extends String> subjects)
      Adds the given items to the value of "subjects"
      Parameters:
      subjects - Items to add to the value of the "subjects" property
    • withSubjects

      public Content.Builder<_B> withSubjects(Iterable<? extends String> subjects)
      Sets the new value of "subjects" (any previous value will be replaced)
      Parameters:
      subjects - New value of the "subjects" property.
    • addSubjects

      public Content.Builder<_B> addSubjects(String... subjects)
      Adds the given items to the value of "subjects"
      Parameters:
      subjects - Items to add to the value of the "subjects" property
    • withSubjects

      public Content.Builder<_B> withSubjects(String... subjects)
      Sets the new value of "subjects" (any previous value will be replaced)
      Parameters:
      subjects - New value of the "subjects" property.
    • withDescription

      public Content.Builder<_B> withDescription(String description)
      Sets the new value of "description" (any previous value will be replaced)
      Parameters:
      description - New value of the "description" property.
    • withSource

      public Content.Builder<_B> withSource(Source source)
      Sets the new value of "source" (any previous value will be replaced)
      Parameters:
      source - New value of the "source" property.
    • withSource

      public Source.Builder<? extends Content.Builder<_B>> withSource()
      Returns the existing builder or a new builder to build the value of the "source" property. Use Source.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "source" property. Use Source.Builder.end() to return to the current builder.
    • withReferenceURL

      public Content.Builder<_B> withReferenceURL(String referenceURL)
      Sets the new value of "referenceURL" (any previous value will be replaced)
      Parameters:
      referenceURL - New value of the "referenceURL" property.
    • addTypes

      public Content.Builder<_B> addTypes(Iterable<? extends String> types)
      Adds the given items to the value of "types"
      Parameters:
      types - Items to add to the value of the "types" property
    • withTypes

      public Content.Builder<_B> withTypes(Iterable<? extends String> types)
      Sets the new value of "types" (any previous value will be replaced)
      Parameters:
      types - New value of the "types" property.
    • addTypes

      public Content.Builder<_B> addTypes(String... types)
      Adds the given items to the value of "types"
      Parameters:
      types - Items to add to the value of the "types" property
    • withTypes

      public Content.Builder<_B> withTypes(String... types)
      Sets the new value of "types" (any previous value will be replaced)
      Parameters:
      types - New value of the "types" property.
    • addContentLevels

      public Content.Builder<_B> addContentLevels(Iterable<? extends String> contentLevels)
      Adds the given items to the value of "contentLevels"
      Parameters:
      contentLevels - Items to add to the value of the "contentLevels" property
    • withContentLevels

      public Content.Builder<_B> withContentLevels(Iterable<? extends String> contentLevels)
      Sets the new value of "contentLevels" (any previous value will be replaced)
      Parameters:
      contentLevels - New value of the "contentLevels" property.
    • addContentLevels

      public Content.Builder<_B> addContentLevels(String... contentLevels)
      Adds the given items to the value of "contentLevels"
      Parameters:
      contentLevels - Items to add to the value of the "contentLevels" property
    • withContentLevels

      public Content.Builder<_B> withContentLevels(String... contentLevels)
      Sets the new value of "contentLevels" (any previous value will be replaced)
      Parameters:
      contentLevels - New value of the "contentLevels" property.
    • addRelationships

      public Content.Builder<_B> addRelationships(Iterable<? extends Relationship> relationships)
      Adds the given items to the value of "relationships"
      Parameters:
      relationships - Items to add to the value of the "relationships" property
    • withRelationships

      public Content.Builder<_B> withRelationships(Iterable<? extends Relationship> relationships)
      Sets the new value of "relationships" (any previous value will be replaced)
      Parameters:
      relationships - New value of the "relationships" property.
    • addRelationships

      public Content.Builder<_B> addRelationships(Relationship... relationships)
      Adds the given items to the value of "relationships"
      Parameters:
      relationships - Items to add to the value of the "relationships" property
    • withRelationships

      public Content.Builder<_B> withRelationships(Relationship... relationships)
      Sets the new value of "relationships" (any previous value will be replaced)
      Parameters:
      relationships - New value of the "relationships" property.
    • addRelationships

      public Relationship.Builder<? extends Content.Builder<_B>> addRelationships()
      Returns a new builder to build an additional value of the "Relationships" property. Use Relationship.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Relationships" property. Use Relationship.Builder.end() to return to the current builder.
    • build

      public Content build()
      Specified by:
      build in interface com.kscs.util.jaxb.Buildable
    • copyOf

      public Content.Builder<_B> copyOf(Content _other)
    • copyOf

      public Content.Builder<_B> copyOf(Content.Builder _other)