1-Wire API for .NET Version 4.00
Public Member Functions

TAGParser Class Reference

The tag parser parses tagging information. More...

List of all members.

Public Member Functions

 TAGParser (DSPortAdapter adapter)
 Construct the tag parser.
Vector parse (InputStream in) throws SAXException, IOException
 Returns the vector of TaggedDevice objects described in the TAG file.
Vector getBranches ()
 Returns the vector of Branch TaggedDevice objects described in the TAG file.
Vector getOWPaths ()
 Returns the vector of OWPath objects discovered through parsing the XML file.

Detailed Description

The tag parser parses tagging information.


Constructor & Destructor Documentation

TAGParser ( DSPortAdapter  adapter)

Construct the tag parser.

Parameters:
adapterWhat port adapter will serve the devices created.

Member Function Documentation

Vector getBranches ( )

Returns the vector of Branch TaggedDevice objects described in the TAG file.

The XML should already be parsed before calling this method.

Parameters:
inThe XML document to parse.
Returns:
Vector of Branch TaggedDevice objects.
Vector getOWPaths ( )

Returns the vector of OWPath objects discovered through parsing the XML file.

The XML file should already be parsed before calling this method.

Parameters:
noparameters.
Returns:
Vector of OWPath objects.
Vector parse ( InputStream  in) throws SAXException, IOException

Returns the vector of TaggedDevice objects described in the TAG file.

Parameters:
inThe XML document to parse.
Returns:
Vector of TaggedDevice objects.
Exceptions:
SAXExceptionIf a parse error occurs parsing in.
IOExceptionIf an I/O error occurs while reading in.

The documentation for this class was generated from the following file: