Class Parse


  • public final class Parse
    extends java.lang.Object
    Author:
    Group 3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXT_NS
      Extension name-space.
      static java.lang.String PWS_NS
      Name-space of the PWS.
    • Constructor Summary

      Constructors 
      Constructor Description
      Parse()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<nu.xom.Document> parseDocXML​(java.io.File xmlFile)
      Return the fully parsed representation of the XML doc.
      static java.util.Optional<nu.xom.Document> parseDocXML​(java.io.InputStream xmlStream)
      Return the fully parsed representation of the XML doc.
      static java.util.Optional<nu.xom.Document> parseToolXML​(java.io.InputStream xmlStream)
      Return the fully parsed representation of the XML doc.
      • Methods inherited from class java.lang.Object

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

      • PWS_NS

        public static final java.lang.String PWS_NS
        Name-space of the PWS.
        See Also:
        Constant Field Values
      • EXT_NS

        public static final java.lang.String EXT_NS
        Extension name-space.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Parse

        public Parse()
    • Method Detail

      • parseDocXML

        public static java.util.Optional<nu.xom.Document> parseDocXML​(java.io.File xmlFile)
        Return the fully parsed representation of the XML doc.
        Parameters:
        xmlFile - file for XML.
        Returns:
        Optional doc.
      • parseDocXML

        public static java.util.Optional<nu.xom.Document> parseDocXML​(java.io.InputStream xmlStream)
        Return the fully parsed representation of the XML doc.
        Parameters:
        xmlStream - streamed XML.
        Returns:
        Optional doc.
      • parseToolXML

        public static java.util.Optional<nu.xom.Document> parseToolXML​(java.io.InputStream xmlStream)
        Return the fully parsed representation of the XML doc.
        Parameters:
        xmlStream - XML Doc stream.
        Returns:
        Optional of doc.