Class ValidationMethodDescriptor

java.lang.Object
com.e1c.g5.v8.dt.internal.check.legacy.ValidationMethodDescriptor

public class ValidationMethodDescriptor extends Object
The descriptor of the legacy validation method
  • Constructor Details

    • ValidationMethodDescriptor

      public ValidationMethodDescriptor(Method method)
      Constructs the method descriptor
      Parameters:
      method - the method, cannot be null
    • ValidationMethodDescriptor

      public ValidationMethodDescriptor(Method method, boolean hasCollisions)
      Constructs the method descriptor
      Parameters:
      method - the method, cannot be null
      hasCollisions - parameter to indicate whether the method has overrides or not
  • Method Details

    • getMethod

      public Method getMethod()
      Provides the validation method
      Returns:
      the method, never null
    • hasCollisions

      public boolean hasCollisions()
      Checks whether the underlying method has overrides
      Returns:
      true if overrides exist, false otherwise
    • getName

      public String getName()
      Provides the validation method name
      Returns:
      the method name, never null
    • getParameterType

      public Class<?> getParameterType()
      Provides the validation method parameter type
      Returns:
      the method parameter type, never null
    • getCheckId

      public String getCheckId()
      Provides the check ID for future check that will be created on the base of this wrapper
      Returns:
      the check ID, never null, can be empty
    • getCheckTitle

      public String getCheckTitle()
      Provides the check title that will be created on the base of this wrapper
      Returns:
      the check title, never null, can be empty
    • getCheckComplexity

      public CheckComplexity getCheckComplexity()
      Provides the check complexity
      Returns:
      the check complexity, never null
    • getIssueSeverity

      public IssueSeverity getIssueSeverity()
      Provides the issue severity
      Returns:
      the issue severity, never null
    • getIssueType

      public IssueType getIssueType()
      Provides the issue type
      Returns:
      the issue type, never null
    • isEnabledByDefault

      public boolean isEnabledByDefault()
      Indicates whether the check will be enabled by default or not
      Returns:
      the enablement
    • getTopObjectEClassName

      public String getTopObjectEClassName()
      Provides the top object class name
      Returns:
      the top object class name, never null, can be empty
    • includeTop

      public IncludeTop includeTop()
      Provides the definition of includeTop flag
      Returns:
      the includeTop flag, never null
    • getContainedObjectEClassNames

      public String[] getContainedObjectEClassNames()
      Provides the array of contained class names
      Returns:
      the array of contained class names, never null, can be empty