Class Relationship.RelationshipBuilder

java.lang.Object
org.ivoa.dm.registry.voresource.Relationship.RelationshipBuilder
Enclosing class:
Relationship

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

    • relationshipType

      public String relationshipType
      the named type of relationship The value of relationshipType should be taken from the vocabulary at http://www.ivoa.net/rdf/voresource/relationship_type.
    • relatedResource

      public List<ResourceName> relatedResource
      the name of resource that this resource is related to.
  • Constructor Details

    • RelationshipBuilder

      public RelationshipBuilder()
  • Method Details

    • create

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