|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.servingxml.util.record.AbstractRecord
com.servingxml.util.record.RecordImpl
public class RecordImpl
A RecordImpl class represents a set of record.
| Field Summary |
|---|
| Fields inherited from interface com.servingxml.util.record.Record |
|---|
EMPTY, EMPTY_ARRAY, EMPTY_RECORD_TYPE_NAME |
| Constructor Summary | |
|---|---|
RecordImpl(Name recordTypeName)
Creates an empty record object. |
|
RecordImpl(RecordType recordType,
Value[] values)
Creates an empty record object. |
|
| Method Summary | |
|---|---|
int |
fieldCount()
|
Name |
getFieldName(int i)
|
java.lang.Object |
getObject(Name name)
Gets the value of a field as a Java object. |
RecordType |
getRecordType()
|
java.lang.String |
getString(Name name)
Gets the value of a field as a string. |
java.lang.String[] |
getStringArray(Name name)
Gets the value of a field as a string array. |
Value |
getValue(int index)
Gets the value of a field at the specified index. |
Value |
getValue(Name name)
Gets the value of a field with the specified name. |
void |
writeToContentHandler(PrefixMap prefixMap,
org.xml.sax.ContentHandler handler)
|
| Methods inherited from class com.servingxml.util.record.AbstractRecord |
|---|
createXmlReader, toString, toXmlString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.servingxml.util.record.Record |
|---|
createXmlReader, toXmlString |
| Constructor Detail |
|---|
public RecordImpl(RecordType recordType,
Value[] values)
public RecordImpl(Name recordTypeName)
| Method Detail |
|---|
public RecordType getRecordType()
getRecordType in interface Recordpublic int fieldCount()
fieldCount in interface Recordpublic Name getFieldName(int i)
getFieldName in interface Recordpublic Value getValue(Name name)
Record
getValue in interface Recordname - The field name.
public Value getValue(int index)
Record
getValue in interface Recordindex - the index of the field.
public java.lang.String[] getStringArray(Name name)
Record
getStringArray in interface Recordname - The field name.
public java.lang.String getString(Name name)
Record
getString in interface Recordname - The field name.
public java.lang.Object getObject(Name name)
Record
getObject in interface Recordname - The field name.
public void writeToContentHandler(PrefixMap prefixMap,
org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
writeToContentHandler in interface Recordorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||