Questions tagged [oval]

OVal (Object Validation Framework) is a validation framework for Java objects

Per the OVal about page:

OVal is a pragmatic and extensible validation framework for any kind of Java objects (not only JavaBeans).

Constraints can be declared with annotations (@NotNull, @MaxLength), POJOs or XML.

Custom constraints can be expressed as custom Java classes or by using scripting languages such as JavaScript, Groovy, BeanShell, OGNL or MVEL.

Besides field/property validation OVal implements Programming by Contract features by utilizing AspectJ based aspects. This for example allows runtime validation of method arguments.

See also: OVal User Guide

59 questions
0
votes
1 answer

How to set priority of custom Oval constraint

I have a custom Annotation constraint , but I want it to be checked only if the other constraint is valid .For example: @NotNull private String propertyA; @Digits private String propertyB; if propertyA is null , i don't want "@Digits"on propertyB…
Peter Ni
  • 43
  • 4
0
votes
1 answer

Oval Validation

Can we access request object in isSatisfied() (class net.sf.oval.AbstractAnnotationCheck) method or can we pass an extra parameter in this method to use further. I have a scenario where I need to pass locale information to isSatisfied() method and…
Saurabh
  • 2,384
  • 6
  • 37
  • 52
0
votes
1 answer

Irregular shapes in Android layout

Any idea how to layout these so they shape around with click able buttons?
0
votes
2 answers

Draw a complex circle (Has border only on the left half of it) using Android Shapes

I'm trying to draw a complex circle with the right half different from the second one using the XML description of Android. The final circle should have border on the left and no border on the right. I though about creating two different circles…
Souhaib Guitouni
  • 860
  • 1
  • 7
  • 24
0
votes
1 answer

writing oval validations in xml

I'm trying to write the equivalent of the below java Assert statement in OVAL XML configuration file in the MVEL expression language. But I'm unable to do so. Any help will be greatly appreciated. public class BusinessObject { // mailingAddress…
user3207455
  • 73
  • 1
  • 9
0
votes
1 answer

oval custom method validation - Pre condition

I'm using Oval validation Fwk + Spring. I want to validate my Business logic method using annotations. I found a nice example in the Oval…
0
votes
2 answers

How to achieve spring injection in oVal validation Framework?

This seems to be a big gap in it's spring integration. Has anybody done this or has successfully integrated Spring and Oval successfully?
arrages
  • 221
  • 4
  • 10
0
votes
1 answer

using OVal validation framework in Java

I use OVal framework for validate business objects in my java projects. please see validation class : public class ObjectValidation implements ObjectValidatable { private IValidator validator; private Map
R R
  • 313
  • 2
  • 4
  • 14
0
votes
1 answer

Oval validation framework - Implementation of @javax.validation.constraints.Pattern (dont working)

i'm making a validation with Oval. I'm using spring batch to populate(csv to object) an object and validating it with Oval. But i think my @javax.validation.constraints.Pattern is not working, because my console doesn't show an error when i run the…
Sam Derin
  • 115
  • 2
  • 4
  • 9
0
votes
2 answers

Oval with expression language

I am using Oval http://oval.sourceforge.net/ for java bean validations and I'm getting an exception when using the expression language features. My code looks like this: @NotNull(errorCode = "paymentCard.number.invalid", message = "Required", when =…
Juan Luis
  • 3,317
  • 4
  • 17
  • 23
0
votes
1 answer

Passing dynamic value in Oval annotation

If you are having a class public class object { @NotNull @NotEmpty @Length(max=32) private String name; } If this bean is validated thru Oval validation framework, How to pass the value 32 dynamically? The reason why i raise this…
Madhu
  • 5,686
  • 9
  • 37
  • 53
0
votes
1 answer

What's the drawback if I use OVal instead of JSR-303 validation?

Coming from play 1.x. I like the possibilities of OVal. How ever actual I'm evaluating to setup a stack with Spring MVC. There the default for validation is JSR-303. One problem I see with JSR-303 is to get the context of a property or adjust the…
niels
  • 7,321
  • 2
  • 38
  • 58
-1
votes
1 answer

How to clip semi circle at top center of ImageView(Android)

I need to clip a semi circle at top center of the ImageView like in the cd cover below As I didn't worked on canvas in Android,I have no idea to achieve this!
Gugan Sakthivel
  • 61
  • 1
  • 10
-1
votes
1 answer

How to force elements to be on the same line?

I want to add skills to a sidebar of my CV created in LaTeX, I am using tcolorbox package to create an oval box around text, but each time I'm creating a new oval box the text (with box) goes to a new line. How can I force it to be added one after…
Dominika
  • 187
  • 3
  • 13
1 2 3
4