Class TAGParser

java.lang.Object
com.dalsemi.onewire.application.tag.TAGParser

public class TAGParser extends Object
The tag parser parses tagging information.
  • Constructor Details

    • TAGParser

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

    • parse

      Returns the vector of TaggedDevice objects described in the TAG file.
      Parameters:
      in - The XML document to parse.
      Returns:
      Vector of TaggedDevice objects.
      Throws:
      SAXException - If a parse error occurs parsing in.
      IOException - If an I/O error occurs while reading in.
    • getBranches

      public 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 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.