Class Relationship.Builder<_B>

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

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

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Relationship _storedValue
  • Constructor Details

    • Builder

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

      public Builder(_B _parentBuilder, Relationship _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 Relationship> _P init(_P _product)
    • withRelationshipType

      public Relationship.Builder<_B> withRelationshipType(String relationshipType)
      Sets the new value of "relationshipType" (any previous value will be replaced)
      Parameters:
      relationshipType - New value of the "relationshipType" property.
    • addRelatedResources

      public Relationship.Builder<_B> addRelatedResources(Iterable<? extends ResourceName> relatedResources)
      Adds the given items to the value of "relatedResources"
      Parameters:
      relatedResources - Items to add to the value of the "relatedResources" property
    • withRelatedResources

      public Relationship.Builder<_B> withRelatedResources(Iterable<? extends ResourceName> relatedResources)
      Sets the new value of "relatedResources" (any previous value will be replaced)
      Parameters:
      relatedResources - New value of the "relatedResources" property.
    • addRelatedResources

      public Relationship.Builder<_B> addRelatedResources(ResourceName... relatedResources)
      Adds the given items to the value of "relatedResources"
      Parameters:
      relatedResources - Items to add to the value of the "relatedResources" property
    • withRelatedResources

      public Relationship.Builder<_B> withRelatedResources(ResourceName... relatedResources)
      Sets the new value of "relatedResources" (any previous value will be replaced)
      Parameters:
      relatedResources - New value of the "relatedResources" property.
    • addRelatedResources

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

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

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

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