uk.co.weft.iso8211
Class Record
java.lang.Object
|
+--uk.co.weft.iso8211.Record
- Direct Known Subclasses:
- DDR
- public class Record
- extends java.lang.Object
An ISO 8211 record
- Version:
- $Revision: 1.4 $
This revision: $Author: simon $
$Log: Record.java,v $
Revision 1.4 2002/11/04 14:11:15 simon
Now generating (some) XML. Tidy up for first public release.
Revision 1.3 2002/11/02 00:09:16 simon
Promising, but still not there. Problems include not correctly finding
the start of the next record.
Revision 1.2 2002/10/31 19:25:22 simon
This package of work is to take a parser which correctly recognised
all the record and field boundaries, and try to make it read actual
data. The DDR is now reading correctly (I believe) but the data are
not being read, primarily because (I think) I'm not correctly making
use of the data I read from the DDR.
Revision 1.1.1.1 2002/10/29 11:27:33 simon
More or less parses
- Author:
- Simon Brooke (simon@jasmine.org.uk)
|
Constructor Summary |
protected |
Record()
An empty constructur so that DDR can do it's own thing. |
|
Record(ISO8211InputStream in,
DDR ddr,
boolean debug)
create and return a Record object by reading from the current
point in this stream |
|
Method Summary |
protected org.w3c.dom.Element |
generate(org.w3c.dom.Document doc,
uk.co.weft.dbutil.Context context)
Generate XML element representing this record. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
leader
protected Leader leader
- my leader
directory
protected Directory directory
- my directory
fields
protected java.util.Vector fields
- my fields
record
protected int record
Record
protected Record()
- An empty constructur so that DDR can do it's own thing. Do not
use unless you really know what you are doing.
Record
public Record(ISO8211InputStream in,
DDR ddr,
boolean debug)
throws java.lang.Exception
- create and return a Record object by reading from the current
point in this stream
- Parameters:
in - the stream to read me fromddr - the data description record for this file (?) needed?debug - whether or not I'm in debug mode
generate
protected org.w3c.dom.Element generate(org.w3c.dom.Document doc,
uk.co.weft.dbutil.Context context)
throws uk.co.weft.domutil.GenerationException
- Generate XML element representing this record.
- Parameters:
doc - the document in which the element is to be generatedcontext - a context containin any bits and pieces I might
need to know about- Throws:
- uk.co.weft.domutil.GenerationException - if anything goes wrong