|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.avutils.jmapper.xml.XmlHandler
public class XmlHandler
XmlHandler handles the XML File Configuration.
| Constructor Summary | |
|---|---|
XmlHandler()
The empty constructor defines a new xml configuration file positioned at the application root. |
|
XmlHandler(String xmlPath)
Xml File is handled at development time from xmlPath. |
|
| Method Summary | |
|---|---|
XmlHandler |
addAnnotatedClass()
Add all Annotated classes to Xml Configuration. |
XmlHandler |
addAnnotatedClass(Class<?>... classes)
Add the annotated classes given as input to Xml Configuration. |
XmlHandler |
addAnnotatedClassAll(Class<?>... classes)
Add the annotated classes given as input to Xml Configuration. |
XmlHandler |
addAttributes(Class<?> aClass,
Attribute... attributes)
Adds attributes to the existent Class in the Xml configuration. |
XmlHandler |
addClass(Class<?> clazz,
Attribute... attributes)
This method adds a specific Class to Xml Configuration File. |
XmlHandler |
addClass(Class<?> clazz,
String... attributes)
This method adds a specific Class to Xml Configuration File. |
XmlHandler |
cleanAnnotatedClass()
Cleans up all annotated classes from the configuration |
XmlHandler |
cleanAnnotatedClass(Class<?>... classes)
Cleans up the annotated classes, given as input, from the configuration. |
XmlHandler |
cleanAnnotatedClassAll(Class<?>... classes)
Cleans up the annotated classes, given as input, from the configuration. |
XmlHandler |
deleteAnnotatedClasses()
Eliminates all classes annotated, from Xml configuration. |
XmlHandler |
deleteAttributes(Class<?> aClass,
String... attributes)
Deletes attributes to the existent Class in the Xml configuration. |
XmlHandler |
deleteClass(Class<?>... classes)
This method remove the classes given as input, from xml mapping File. |
XmlHandler |
fromXmlToAnnotation()
Adds annotations to all classes presents in the Xml configuration. |
XmlHandler |
fromXmlToAnnotation(Class<?>... classes)
Adds annotations to classes given as input starting from Xml configuration. |
XmlHandler |
fromXmlToAnnotationAll(Class<?>... classes)
Adds annotations to classes given as input starting from Xml configuration. |
XML |
getXML()
For debug porpouse |
XmlHandler |
overrideAnnotatedClass()
This method rewrites the xml configuration of only those classes configured in annotation and xml. |
XmlHandler |
overrideAnnotatedClass(Class<?>... classes)
This method rewrites the xml configuration only if the classes, geiven as input, are configured in annotation and xml.. |
XmlHandler |
overrideAnnotatedClassAll(Class<?>... classes)
This method rewrite a Xml Configuration of the Annotated Class given as input. |
XmlHandler |
overrideClass(Class<?> aClass,
Attribute... attributes)
This method rewrite a configuration of the Class given as input, with this attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlHandler()
public XmlHandler(String xmlPath)
xmlPath - xml path| Method Detail |
|---|
public XmlHandler cleanAnnotatedClassAll(Class<?>... classes)
classes -
public XmlHandler cleanAnnotatedClass(Class<?>... classes)
classes -
public XmlHandler cleanAnnotatedClass()
public XmlHandler addAnnotatedClassAll(Class<?>... classes)
classes - annotated classes to add to Xml Configuration
public XmlHandler addAnnotatedClass(Class<?>... classes)
classes - annotated classes to add to Xml Configuration
public XmlHandler addAnnotatedClass()
public XmlHandler overrideAnnotatedClassAll(Class<?>... classes)
classes - Classes to rewrite
public XmlHandler overrideAnnotatedClass(Class<?>... classes)
classes - Classes to rewrite
public XmlHandler overrideAnnotatedClass()
public XmlHandler deleteAnnotatedClasses()
public XmlHandler fromXmlToAnnotationAll(Class<?>... classes)
classes - classes to convert from xml to annotation
public XmlHandler fromXmlToAnnotation(Class<?>... classes)
classes - classes to convert from xml to annotation
public XmlHandler fromXmlToAnnotation()
public XmlHandler addAttributes(Class<?> aClass,
Attribute... attributes)
aClass - Class of the attributesattributes - attributes of the clazz to add in the Xml Configuration File
public XmlHandler deleteAttributes(Class<?> aClass,
String... attributes)
aClass - Class of the attributesattributes - attributes of the clazz to delete from Xml Configuration File
public XmlHandler addClass(Class<?> clazz,
String... attributes)
clazz - a Class to add in xml configurationattributes - configured fields of clazz
public XmlHandler addClass(Class<?> clazz,
Attribute... attributes)
clazz - a Class to add in xml configurationattributes - configured fields of clazz
public XmlHandler deleteClass(Class<?>... classes)
classes - classes to delete
public XmlHandler overrideClass(Class<?> aClass,
Attribute... attributes)
aClass - a Class to overrideattributes - attributes of aClass
public XML getXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||