Class AssociationBuilder


  • public final class AssociationBuilder
    extends Object
    A builder for creating Association objects.
    Since:
    1.0.0
    • Constructor Detail

      • AssociationBuilder

        public AssociationBuilder​(String name,
                                  String leftAsset,
                                  String leftField,
                                  Multiplicity leftMultiplicity,
                                  String rightAsset,
                                  String rightField,
                                  Multiplicity rightMultiplicity)
        Constructs a new AssociationBuilder object.
        Parameters:
        name - the name of the association
        leftAsset - the left asset of the association
        leftField - the left field of the association
        leftMultiplicity - the left multiplicity of the association
        rightAsset - the right asset of the association
        rightField - the right field of the association
        rightMultiplicity - the right multiplicity of the association
        Throws:
        NullPointerException - if name, leftAsset, leftField, leftMultiplicity, rightAsset, rightField, or rightMultiplicity is null
        IllegalArgumentException - if name, leftAsset, leftField, rightAsset, or rightField is not a valid identifier
        Since:
        1.0.0
    • Method Detail

      • getName

        public String getName()
        Returns the name of this AssociationBuilder object.
        Returns:
        the name of this AssociationBuilder object
        Since:
        1.0.0
      • getMeta

        public MetaBuilder getMeta()
        Returns the meta info of this AssociationBuilder object.
        Returns:
        the meta info of this AssociationBuilder object
        Since:
        1.0.0
      • getLeftAsset

        public String getLeftAsset()
        Returns the left asset of this AssociationBuilder object.
        Returns:
        the left asset of this AssociationBuilder object
        Since:
        1.0.0
      • getLeftField

        public String getLeftField()
        Returns the left field of this AssociationBuilder object.
        Returns:
        the left field of this AssociationBuilder object
        Since:
        1.0.0
      • getLeftMultiplicity

        public Multiplicity getLeftMultiplicity()
        Returns the left multiplicity of this AssociationBuilder object.
        Returns:
        the left multiplicity of this AssociationBuilder object
        Since:
        1.0.0
      • getRightAsset

        public String getRightAsset()
        Returns the right asset of this AssociationBuilder object.
        Returns:
        the right asset of this AssociationBuilder object
        Since:
        1.0.0
      • getRightField

        public String getRightField()
        Returns the right field of this AssociationBuilder object.
        Returns:
        the right field of this AssociationBuilder object
        Since:
        1.0.0
      • getRightMultiplicity

        public Multiplicity getRightMultiplicity()
        Returns the right multiplicity of this AssociationBuilder object.
        Returns:
        the right multiplicity of this AssociationBuilder object
        Since:
        1.0.0