net.ontopia.topicmaps.schema.impl.osl
Class OSLSchemaReader

java.lang.Object
  extended by net.ontopia.xml.AbstractXMLFormatReader
      extended by net.ontopia.topicmaps.schema.impl.osl.OSLSchemaReader
All Implemented Interfaces:
SchemaReaderIF

public class OSLSchemaReader
extends net.ontopia.xml.AbstractXMLFormatReader
implements SchemaReaderIF

PUBLIC: Reader that reads OSL schemas from their XML representation into an OSL object structure.


Constructor Summary
OSLSchemaReader(java.io.File file)
          PUBLIC: Creates a reader bound to the given file.
OSLSchemaReader(java.lang.String uri)
          PUBLIC: Creates a reader bound to the given URI.
 
Method Summary
 SchemaIF read()
          PUBLIC: Reads the schema from the data source and returns the object structure.
 
Methods inherited from class net.ontopia.xml.AbstractXMLFormatReader
getBaseAddress, getInputSource, getXMLReaderFactory, setBaseAddress, setInputSource, setXMLReaderFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSLSchemaReader

public OSLSchemaReader(java.lang.String uri)
                throws java.net.MalformedURLException
PUBLIC: Creates a reader bound to the given URI.

Throws:
java.net.MalformedURLException

OSLSchemaReader

public OSLSchemaReader(java.io.File file)
PUBLIC: Creates a reader bound to the given file.

Method Detail

read

public SchemaIF read()
              throws java.io.IOException,
                     SchemaSyntaxException
Description copied from interface: SchemaReaderIF
PUBLIC: Reads the schema from the data source and returns the object structure.

Specified by:
read in interface SchemaReaderIF
Throws:
java.io.IOException - Thrown if there are problems with the data source while reading the schema.
SchemaSyntaxException - Thrown if the schema violates the schema language syntax.


Copyright © 2000-2010 Ontopia.