-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support only validate specified field.
- Loading branch information
Showing
6 changed files
with
143 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
valizilla/src/main/java/pub/zilla/validzilla/model/MethodModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package pub.zilla.validzilla.model; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Created by zilla on 10/12/17. | ||
*/ | ||
|
||
public class MethodModel { | ||
private Method method; | ||
private Annotation annotation; | ||
|
||
public MethodModel() { | ||
|
||
} | ||
|
||
public MethodModel(Method method, Annotation annotation) { | ||
this.method = method; | ||
this.annotation = annotation; | ||
} | ||
|
||
public Method getMethod() { | ||
return method; | ||
} | ||
|
||
public void setMethod(Method method) { | ||
this.method = method; | ||
} | ||
|
||
public Annotation getAnnotation() { | ||
return annotation; | ||
} | ||
|
||
public void setAnnotation(Annotation annotation) { | ||
this.annotation = annotation; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "MethodModel{" + | ||
"method=" + method + | ||
", annotation=" + annotation + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters