|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.avutils.jmapper.util.XML
public final class XML
XML exposes utility methods for managing the XML file.
| Constructor Summary | |
|---|---|
XML()
Default behavior |
|
XML(boolean atRuntime,
String xmlPath)
Xml file can be loaded in two ways: at runtime and development time. |
|
| Method Summary | |
|---|---|
XML |
addAnnotatedClass(Class<?> aClass)
This method adds to the xml configuration file, the class given in input. |
XML |
addAttributes(Class<?> aClass,
Attribute[] attributes)
This method adds the attributes to an existing Class. |
XML |
addClass(Class<?> aClass,
Attribute[] attributes)
This method adds Class and attributes to xmlJmapper object. |
boolean |
attributeExists(Class<?> aClass,
Attribute attribute)
This method returns true if the attribute exist in the Class given in input, returns false otherwise. |
Map<String,List<Attribute>> |
attributesLoad()
|
Map<String,List<ConversionMethod>> |
conversionsLoad()
|
XML |
deleteAttributes(Class<?> aClass,
String[] attributes)
This method deletes the attributes to an existing Class. |
XML |
deleteClass(Class<?> aClass)
This method remove a specific Class from Xml Configuration File |
boolean |
exists()
True if xml path has been defined, false otherwise. |
List<String> |
getClasses()
Returns a list with the classes names presents in xml mapping file. |
String |
getXmlPath()
Returns the xml path of this object. |
XML |
setXmlPath(String aXmlPath)
Setting of xml path. |
XML |
write()
Writes the xml mapping file starting from xmlJmapper object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XML(boolean atRuntime,
String xmlPath)
throws MalformedURLException,
IOException
atRuntime - true if xml file must be loaded at runtime, false at development timexmlPath - path of xml file
IOException
MalformedURLExceptionpublic XML()
| Method Detail |
|---|
public String getXmlPath()
public boolean exists()
public XML setXmlPath(String aXmlPath)
aXmlPath - xml path
public Map<String,List<Attribute>> attributesLoad()
public Map<String,List<ConversionMethod>> conversionsLoad()
public List<String> getClasses()
public XML write()
public XML addAnnotatedClass(Class<?> aClass)
aClass - add This Class to Xml Configuration file
public XML addClass(Class<?> aClass,
Attribute[] attributes)
aClass - Class to addsattributes - attributes of Class
public XML deleteClass(Class<?> aClass)
aClass -
public XML addAttributes(Class<?> aClass,
Attribute[] attributes)
aClass - attributes -
public XML deleteAttributes(Class<?> aClass,
String[] attributes)
aClass - attributes -
public boolean attributeExists(Class<?> aClass,
Attribute attribute)
aClass - Class of the Attributeattribute - Attribute to check
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||