superwaba.ext.xplat.xml
Class XmlReadableCatalog

java.lang.Object
  |
  +--superwaba.ext.xplat.xml.XmlReadableCatalog

public class XmlReadableCatalog
extends java.lang.Object
implements XmlReadable

Make an XmlReadable from a Catalog Example:

    XmlReader rdr = new XmlReader();
    rdr.setContentHandler(...);
    rdr.parse(new XmlReadableCatalog(SerialPort.DEFAULT, 19200));
 


Constructor Summary
XmlReadableCatalog(URI baseURI)
          Constructor
 
Method Summary
 URI getBaseURI()
          Get the base URI attached to this XmlReadable
 boolean isOk()
          Tell if this XmlReadableCatalog is functionning properly
 void readXml(XmlReader rdr)
          Read this XmlReadable through an XmlReader parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReadableCatalog

public XmlReadableCatalog(URI baseURI)
Constructor
Parameters:
baseURI - URI for this XmlReadable
Method Detail

isOk

public boolean isOk()
Tell if this XmlReadableCatalog is functionning properly
Returns:
true, if this XmlReadableCatalog is functionning properly; false otherwise.

readXml

public void readXml(XmlReader rdr)
             throws SyntaxException
Description copied from interface: XmlReadable
Read this XmlReadable through an XmlReader parser.
Specified by:
readXml in interface XmlReadable
Tags copied from interface: XmlReadable
Parameters:
rdr - the XmlReader that will report the SAX events
Throws:
SyntaxException -  

getBaseURI

public URI getBaseURI()
Description copied from interface: XmlReadable
Get the base URI attached to this XmlReadable
Specified by:
getBaseURI in interface XmlReadable
Tags copied from interface: XmlReadable
Returns:
the base URI attached to this XmlReadable