|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.descriptor.example.ExampleCustomValidator
public class ExampleCustomValidator
Defines custom validator methods used in the defintion of ExampleValidationBean
. These methods illustrate the contract that
a bean implementation has with its custom validation methods.
Constructor Summary | |
---|---|
ExampleCustomValidator()
|
Method Summary | |
---|---|
static void |
validateExampleValidationBean(ExampleValidationBean bean)
On-demand bean level validator. |
static void |
validateMinLessThanMax(ExampleValidationBean bean)
On-demand validator that ensures that ExampleValidationBean.getMinimum() does not exceed
ExampleValidationBean.getMaximum() . |
static void |
validateURI(String value)
Ensure that the property value is a legal URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleCustomValidator()
Method Detail |
---|
public static void validateExampleValidationBean(ExampleValidationBean bean) throws IllegalArgumentException
ExampleCustomValidator.validateMinLessThanMax(weblogic.descriptor.example.ExampleValidationBean)
).
bean
- - bean to be validated
IllegalArgumentException
- if validation fails.public static void validateURI(String value) throws IllegalArgumentException
ExampleValidationBean.setURI(java.lang.String)
.
value
- - bean to be validated
IllegalArgumentException
- if validation fails.public static void validateMinLessThanMax(ExampleValidationBean bean) throws IllegalArgumentException
ExampleValidationBean.getMinimum()
does not exceed
ExampleValidationBean.getMaximum()
.
bean
- - bean to be validated
IllegalArgumentException
- if validation fails.
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |