Class POBXMLParser

  • All Implemented Interfaces:

    
    public class POBXMLParser
    
                        

    Class is responsible for xml parsing using DOM parser and create an instance of respective model class.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static <T extends POBXMLNodeListener> T parse(@NonNull() String content, @NonNull() Class<T> rootClass) Creates an xml node from provided content and builds model class instance with node values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • parse

        @Nullable() static <T extends POBXMLNodeListener> T parse(@NonNull() String content, @NonNull() Class<T> rootClass)

        Creates an xml node from provided content and builds model class instance with node values.

        Parameters:
        content - string xml content to be parsed.
        rootClass - model class of which the object needs to be created of type POBXMLNodeListener.
        Returns:

        Instance of class after parsing the content.