net.sourceforge.toscanaj.parser
Class ObjectAttributeListParser

java.lang.Object
  extended bynet.sourceforge.toscanaj.parser.ObjectAttributeListParser

public class ObjectAttributeListParser
extends java.lang.Object

This parser reads a file with a list of objects and their attributes into a context. The file format uses a line for each object with its attributes. The first part is the text for the object itself, followed by a colon and then a list of attributes it relates to seperated by semicolons. Double-quotes can be used for quotation, backslashes as escapes.


Constructor Summary
ObjectAttributeListParser()
           
 
Method Summary
static ContextImplementation importOALFile(java.io.File file)
           
static ContextImplementation importOALFromReader(java.io.Reader reader, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectAttributeListParser

public ObjectAttributeListParser()
Method Detail

importOALFile

public static ContextImplementation importOALFile(java.io.File file)
                                           throws java.io.FileNotFoundException,
                                                  DataFormatException
Throws:
java.io.FileNotFoundException
DataFormatException

importOALFromReader

public static ContextImplementation importOALFromReader(java.io.Reader reader,
                                                        java.lang.String name)
                                                 throws DataFormatException
Throws:
DataFormatException


The ToscanaJ project