Class TAGParser


  • public class TAGParser
    extends java.lang.Object
    The tag parser parses tagging information.
    • Constructor Summary

      Constructors 
      Constructor Description
      TAGParser​(DSPortAdapter adapter)
      Construct the tag parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Vector<TaggedDevice> getBranches()
      Returns the vector of Branch TaggedDevice objects described in the TAG file.
      java.util.Vector<OWPath> getOWPaths()
      Returns the vector of OWPath objects discovered through parsing the XML file.
      java.util.Vector<TaggedDevice> parse​(java.io.InputStream in)
      Returns the vector of TaggedDevice objects described in the TAG file.
      • Methods inherited from class java.lang.Object

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

      • TAGParser

        public TAGParser​(DSPortAdapter adapter)
        Construct the tag parser.
        Parameters:
        adapter - What port adapter will serve the devices created.
    • Method Detail

      • parse

        public java.util.Vector<TaggedDevice> parse​(java.io.InputStream in)
                                             throws org.xml.sax.SAXException,
                                                    java.io.IOException
        Returns the vector of TaggedDevice objects described in the TAG file.
        Parameters:
        in - The XML document to parse.
        Returns:
        Vector of TaggedDevice objects.
        Throws:
        org.xml.sax.SAXException - If a parse error occurs parsing in.
        java.io.IOException - If an I/O error occurs while reading in.
      • getBranches

        public java.util.Vector<TaggedDevice> getBranches()
        Returns the vector of Branch TaggedDevice objects described in the TAG file. The XML should already be parsed before calling this method.
        Returns:
        Vector of Branch TaggedDevice objects.
      • getOWPaths

        public java.util.Vector<OWPath> getOWPaths()
        Returns the vector of OWPath objects discovered through parsing the XML file. The XML file should already be parsed before calling this method.
        Returns:
        Vector of OWPath objects.