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 AbstractXMLFormatReader
implements SchemaReaderIF

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


Field Summary
 
Fields inherited from class net.ontopia.xml.AbstractXMLFormatReader
base_address, source, xrfactory
 
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
protected  void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSLSchemaReader

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

Throws:
java.net.MalformedURLException
java.io.IOException

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.

configureXMLReaderFactory

protected void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
Specified by:
configureXMLReaderFactory in class AbstractXMLFormatReader


Copyright © 2000-2012 Ontopia.