Class NotXmlParser


  • public final class NotXmlParser
    extends java.lang.Object
    Parses a String suitable for storing in the OBJECT field of database tables into an Object.
    Author:
    Matthew Wakeling
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DELIM
      The string that delimits the sections of the NotXml.
      static java.lang.String ENCODED_DELIM
      The character that denotes an encoded delimiter in the string.
      static java.util.regex.Pattern SPLITTER
      A Pattern that will find delimiters.
    • Field Detail

      • DELIM

        public static final java.lang.String DELIM
        The string that delimits the sections of the NotXml.
        See Also:
        Constant Field Values
      • ENCODED_DELIM

        public static final java.lang.String ENCODED_DELIM
        The character that denotes an encoded delimiter in the string.
        See Also:
        Constant Field Values
      • SPLITTER

        public static final java.util.regex.Pattern SPLITTER
        A Pattern that will find delimiters.
    • Method Detail

      • parse

        public static InterMineObject parse​(java.lang.String xml,
                                            ObjectStoreInterMineImpl os)
                                     throws java.lang.ClassNotFoundException
        Parse the given NotXml String into an Object.
        Parameters:
        xml - the NotXml String
        os - the ObjectStore from which to create lazy objects
        Returns:
        an InterMineObject
        Throws:
        java.lang.ClassNotFoundException - if a class cannot be found