Class Relation<T extends Replaceable,S extends Replaceable>

java.lang.Object
tools.mdsd.mocore.framework.surrogate.Replaceable
tools.mdsd.mocore.framework.surrogate.Relation<T,S>

public abstract class Relation<T extends Replaceable,S extends Replaceable> extends Replaceable
  • Constructor Details

    • Relation

      protected Relation(T source, S destination, boolean isPlaceholder)
  • Method Details

    • getSource

      public T getSource()
    • getDestination

      public S getDestination()
    • includes

      public boolean includes(Replaceable replaceable)
      Specified by:
      includes in class Replaceable
    • getSourceReplacement

      protected <U extends Replaceable> T getSourceReplacement(U original, U replacement)
    • getDestinationReplacement

      protected <U extends Replaceable> S getDestinationReplacement(U original, U replacement)
    • isPlaceholderOf

      public boolean isPlaceholderOf(Replaceable replaceable)
      Specified by:
      isPlaceholderOf in class Replaceable
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Replaceable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Replaceable