Class NullPresenceCheck

All Implemented Interfaces:
PresenceCheck, Writable

public class NullPresenceCheck extends ModelElement implements PresenceCheck
A presence check that checks if the source reference is null.
Author:
Filip Hrisafov
  • Constructor Details

    • NullPresenceCheck

      public NullPresenceCheck(String sourceReference)
    • NullPresenceCheck

      public NullPresenceCheck(String sourceReference, boolean negate)
  • Method Details

    • getSourceReference

      public String getSourceReference()
    • isNegate

      public boolean isNegate()
    • getImportTypes

      public Set<Type> getImportTypes()
      Description copied from class: ModelElement
      Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
      Specified by:
      getImportTypes in interface PresenceCheck
      Specified by:
      getImportTypes in class ModelElement
      Returns:
      A set with type referenced by this model element. Must not be null.
    • negate

      public PresenceCheck negate()
      Specified by:
      negate in interface PresenceCheck
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object