Package org.openxava.component.parse
Class AnnotatedClassParser
- java.lang.Object
-
- org.openxava.component.parse.AnnotatedClassParser
-
- All Implemented Interfaces:
IComponentParser
public class AnnotatedClassParser extends java.lang.Object implements IComponentParser
Parse EJB3 Entities (POJOs with JPA annotations) into OpenXava components.- Author:
- Javier Paniza
-
-
Constructor Summary
Constructors Constructor Description AnnotatedClassParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetaValidator
createEntityValidator(EntityValidator validator)
Creates a MetaValidator for entity validation from a EntityValidator annotation.static MetaValidator
createPropertyValidator(PropertyValidator validator)
Creates a MetaValidator for property validation from a PropertyValidator annotation.static java.util.Collection<java.lang.String>
friendMetaApplicationGetManagedClassNames()
Only for using from MetaApplication class.static java.util.Collection<java.lang.String>
getManagedClassNames()
IPersistenceProvider
getPersistenceProvider()
static boolean
isForView(java.lang.String view, java.lang.String forViews, java.lang.String notForViews)
MetaComponent
parse(java.lang.String name)
-
-
-
Method Detail
-
parse
public MetaComponent parse(java.lang.String name) throws java.lang.Exception
- Specified by:
parse
in interfaceIComponentParser
- Throws:
java.lang.Exception
-
getPersistenceProvider
public IPersistenceProvider getPersistenceProvider()
- Specified by:
getPersistenceProvider
in interfaceIComponentParser
-
createEntityValidator
public static MetaValidator createEntityValidator(EntityValidator validator)
Creates a MetaValidator for entity validation from a EntityValidator annotation.
-
createPropertyValidator
public static MetaValidator createPropertyValidator(PropertyValidator validator)
Creates a MetaValidator for property validation from a PropertyValidator annotation.
-
friendMetaApplicationGetManagedClassNames
public static java.util.Collection<java.lang.String> friendMetaApplicationGetManagedClassNames()
Only for using from MetaApplication class.
-
getManagedClassNames
public static java.util.Collection<java.lang.String> getManagedClassNames()
-
isForView
public static boolean isForView(java.lang.String view, java.lang.String forViews, java.lang.String notForViews)
- Since:
- 7.4
-
-