aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java')
-rw-r--r--moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java45
1 files changed, 44 insertions, 1 deletions
diff --git a/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java b/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java
index 870e19a..3259acc 100644
--- a/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java
+++ b/moxy/org.eclipse.persistence.moxy/src/org/eclipse/persistence/jaxb/JAXBContextProperties.java
@@ -9,7 +9,8 @@
*
* Contributors:
* Blaise Doughan - 2.4.0 - initial implementation
- * Marcel Valovy - 2.6.0 - added case insensitive unmarshalling property
+ * Marcel Valovy - 2.6 - added case insensitive unmarshalling property
+ * - added bean validation related properties
******************************************************************************/
package org.eclipse.persistence.jaxb;
@@ -253,10 +254,52 @@ public class JAXBContextProperties {
* <p>The property must be passed to the {@link org.eclipse.persistence.jaxb.JAXBContextFactory}, when creating
* {@link org.eclipse.persistence.jaxb.JAXBContext}. It will affect only unmarshaller created from that context.</p>
*
+ * <p>Specifying this flag may impose a slight performance penalty.</p>
+ *
* @since 2.6.0
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=331241">EclipseLink Forum, Bug 331241.</a>
* @see org.eclipse.persistence.jaxb.UnmarshallerProperties#UNMARSHALLING_CASE_INSENSITIVE
*/
public static final String UNMARSHALLING_CASE_INSENSITIVE = "eclipselink.unmarshalling.case-insensitive";
+ /**
+ * Property for setting bean validation mode.
+ * Valid values {@link BeanValidationMode#AUTO} (default),{@link BeanValidationMode#CALLBACK}, {@link BeanValidationMode#NONE}.
+ *
+ * @since 2.6
+ * @see org.eclipse.persistence.jaxb.MarshallerProperties#BEAN_VALIDATION_MODE
+ * @see org.eclipse.persistence.jaxb.UnmarshallerProperties#BEAN_VALIDATION_MODE
+ */
+ public static final String BEAN_VALIDATION_MODE = "eclipselink.beanvalidation.mode";
+
+ /**
+ * Property for setting preferred or custom validator factory.
+ * The mapped value must implement javax.validation.ValidatorFactory.
+ *
+ * @since 2.6
+ * @see org.eclipse.persistence.jaxb.MarshallerProperties#BEAN_VALIDATION_FACTORY
+ * @see org.eclipse.persistence.jaxb.UnmarshallerProperties#BEAN_VALIDATION_FACTORY
+ */
+ public static final String BEAN_VALIDATION_FACTORY = "eclipselink.beanvalidation.factory";
+
+ /**
+ * Property for setting bean validation target groups.
+ * The mapped value must be of type Class<?>[].
+ *
+ * @since 2.6
+ * @see org.eclipse.persistence.jaxb.MarshallerProperties#BEAN_VALIDATION_GROUPS
+ * @see org.eclipse.persistence.jaxb.UnmarshallerProperties#BEAN_VALIDATION_GROUPS
+ */
+ public static final String BEAN_VALIDATION_GROUPS = "eclipselink.beanvalidation.groups";
+
+ /**
+ * Property for disabling/enabling generation of XML Facets during schemagen.
+ * The mapped value must be of type Boolean.
+ * If it's true, then facets will be generated, based on the BV annotations.
+ * If false, the BV annotations processing will be skipped during schemagen
+ * and no facets will be generated.
+ *
+ * @since 2.6
+ */
+ public static final String GENERATE_FACETS = "eclipselink.generate.facets";
} \ No newline at end of file