Class AbstractValidationMethod<M extends ValidationMethod<M>>
- java.lang.Object
-
- com.broadleafcommerce.metadata.dsl.core.extension.fields.validation.AbstractValidationMethod<M>
-
- All Implemented Interfaces:
Copyable<M>
,ValidationMethod<M>
,Serializable
- Direct Known Subclasses:
DefaultValidationMethod
public abstract class AbstractValidationMethod<M extends ValidationMethod<M>> extends Object implements ValidationMethod<M>
- Author:
- Nick Crum (ncrum)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractValidationMethod()
AbstractValidationMethod(ValidationMethod<?> validationMethod)
AbstractValidationMethod(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<Object>
getArgs()
InternationalizedMessage
getMessage()
String
getName()
int
hashCode()
void
setArgs(List<Object> args)
void
setMessage(InternationalizedMessage message)
void
setName(String name)
-
-
-
Constructor Detail
-
AbstractValidationMethod
public AbstractValidationMethod()
-
AbstractValidationMethod
public AbstractValidationMethod(String name)
-
AbstractValidationMethod
public AbstractValidationMethod(ValidationMethod<?> validationMethod)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
getMessage
public InternationalizedMessage getMessage()
- Specified by:
getMessage
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
getArgs
public List<Object> getArgs()
- Specified by:
getArgs
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
setMessage
public void setMessage(InternationalizedMessage message)
- Specified by:
setMessage
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
setArgs
public void setArgs(List<Object> args)
- Specified by:
setArgs
in interfaceValidationMethod<M extends ValidationMethod<M>>
-
canEqual
protected boolean canEqual(Object other)
-
-