Class ValidationMethodDescriptor
java.lang.Object
com.e1c.g5.v8.dt.internal.check.legacy.ValidationMethodDescriptor
The descriptor of the legacy validation method
-
Constructor Summary
ConstructorsConstructorDescriptionValidationMethodDescriptor
(Method method) Constructs the method descriptorValidationMethodDescriptor
(Method method, boolean hasCollisions) Constructs the method descriptor -
Method Summary
Modifier and TypeMethodDescriptionProvides the check complexityProvides the check ID for future check that will be created on the base of this wrapperProvides the check title that will be created on the base of this wrapperString[]
Provides the array of contained class namesProvides the issue severityProvides the issue typeProvides the validation methodgetName()
Provides the validation method nameClass<?>
Provides the validation method parameter typeProvides the top object class nameboolean
Checks whether the underlying method has overridesProvides the definition of includeTop flagboolean
Indicates whether the check will be enabled by default or not
-
Constructor Details
-
ValidationMethodDescriptor
Constructs the method descriptor- Parameters:
method
- the method, cannot benull
-
ValidationMethodDescriptor
Constructs the method descriptor- Parameters:
method
- the method, cannot benull
hasCollisions
- parameter to indicate whether the method has overrides or not
-
-
Method Details
-
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
Provides the validation method name- Returns:
- the method name, never
null
-
getParameterType
Provides the validation method parameter type- Returns:
- the method parameter type, never
null
-
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
Provides the check title that will be created on the base of this wrapper- Returns:
- the check title, never
null
, can be empty
-
getCheckComplexity
Provides the check complexity- Returns:
- the check complexity, never
null
-
getIssueSeverity
Provides the issue severity- Returns:
- the issue severity, never
null
-
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
Provides the top object class name- Returns:
- the top object class name, never
null
, can be empty
-
includeTop
Provides the definition of includeTop flag- Returns:
- the includeTop flag, never
null
-
getContainedObjectEClassNames
Provides the array of contained class names- Returns:
- the array of contained class names, never
null
, can be empty
-