Class LinkedEntityImpl

    • Field Detail

      • source

        protected String source
        The source of the link.
      • relation

        protected String relation
        The relation of the link.
      • target

        protected String target
        The target of the link.
      • description

        protected String description
        The description of the link.
      • min

        protected Integer min
        The minimum cardinality.
      • max

        protected Integer max
        The maximum cardinality.
    • Constructor Detail

      • LinkedEntityImpl

        public LinkedEntityImpl()
        Default constructor.
    • Method Detail

      • getSource

        public String getSource()
        Returns the name of the source entity type.
        Specified by:
        getSource in interface LinkedEntity
        Returns:
        The source type name.
      • setSource

        public void setSource​(String source)
        Sets the name of the source entity type.
        Specified by:
        setSource in interface LinkedEntity
        Parameters:
        source - The source type name.
      • getRelation

        public String getRelation()
        Returns the name of the relation type.
        Specified by:
        getRelation in interface LinkedEntity
        Returns:
        The relation type name.
      • setRelation

        public void setRelation​(String relation)
        Sets the name of the relation type.
        Specified by:
        setRelation in interface LinkedEntity
        Parameters:
        relation - The relation type name.
      • getTarget

        public String getTarget()
        Returns the name of the target entity type.
        Specified by:
        getTarget in interface LinkedEntity
        Returns:
        The target type name.
      • setTarget

        public void setTarget​(String target)
        Sets the name of the target entity type.
        Specified by:
        setTarget in interface LinkedEntity
        Parameters:
        target - The target type name.
      • getDescription

        public String getDescription()
        Returns the description of the link.
        Specified by:
        getDescription in interface LinkedEntity
        Returns:
        The description.
      • setDescription

        public void setDescription​(String description)
        Sets the description of the link.
        Specified by:
        setDescription in interface LinkedEntity
        Parameters:
        description - The description.
      • getMin

        public Integer getMin()
        Returns the minimum cardinality of the link.
        Specified by:
        getMin in interface LinkedEntity
        Returns:
        The minimum cardinality.
      • setMin

        public void setMin​(Integer min)
        Sets the minimum cardinality of the link.
        Specified by:
        setMin in interface LinkedEntity
        Parameters:
        min - The minimum cardinality.
      • getMax

        public Integer getMax()
        Returns the maximum cardinality of the link.
        Specified by:
        getMax in interface LinkedEntity
        Returns:
        The maximum cardinality.
      • setMax

        public void setMax​(Integer max)
        Sets the maximum cardinality of the link.
        Specified by:
        setMax in interface LinkedEntity
        Parameters:
        max - The maximum cardinality.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • compareIntegers

        protected int compareIntegers​(Integer thisInt,
                                      Integer otherInt)
        Compares two integers.
        Parameters:
        thisInt - The first integer.
        otherInt - The second integer.
        Returns:
        The result of the comparison.