Package jadex.xml

Class PropertiesXMLHelper


  • public class PropertiesXMLHelper
    extends java.lang.Object
    A simple static helper class for reading and writing jadex.commons.Properties.
    • Field Detail

      • typeinfos

        public static final java.util.Set typeinfos
        The type infos.
    • Constructor Detail

      • PropertiesXMLHelper

        public PropertiesXMLHelper()
    • Method Detail

      • write

        public static java.lang.String write​(java.lang.Object val,
                                             java.lang.ClassLoader classloader)
        Convert to a string.
      • write

        public static void write​(java.lang.Object val,
                                 java.io.OutputStream os,
                                 java.lang.ClassLoader classloader)
        Convert to a string.
      • read

        public static <T> T read​(java.lang.String val,
                                 java.lang.ClassLoader classloader)
        Convert an xml to an object.
        Parameters:
        val - The string value.
        Returns:
        The decoded object.
      • read

        public static <T> T read​(java.io.InputStream is,
                                 java.lang.ClassLoader classloader)
        Convert an xml to an object.
        Parameters:
        val - The string value.
        Returns:
        The decoded object.
      • getPathManager

        public static TypeInfoPathManager getPathManager()
        Get the default Java reader.
        Returns:
        The Java reader.
      • getObjectReaderHandler

        public static IObjectReaderHandler getObjectReaderHandler()
        Get the default Java reader.
        Returns:
        The Java reader.
      • getObjectWriterHandler

        public static IObjectWriterHandler getObjectWriterHandler()
        Get the default Java writer.
        Returns:
        The Java writer.