|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.servingxml.util.record.RecordTypeImpl
public class RecordTypeImpl
A RecordTypeImpl class implements a RecordType.
| Constructor Summary | |
|---|---|
RecordTypeImpl(Name recordTypeName)
Creates an empty recordType object. |
|
RecordTypeImpl(Name recordTypeName,
FieldType[] fieldTypes)
Creates a recordType object. |
|
| Method Summary | |
|---|---|
int |
count()
Gets the number of recordType |
boolean |
equals(java.lang.Object o)
|
int |
fieldCount()
Gets the number of recordType |
int |
getFieldIndex(Name name)
Gets the corresponding index in a record for a field by name |
FieldType |
getFieldType(int index)
Gets the field type at the specified index. |
FieldType |
getFieldTypeAt(int index)
Deprecated. since ServingXML 0.6.2: use RecordType.getFieldType(int) |
FieldType[] |
getFieldTypes()
|
Name |
getName()
Gets the name of the record type. |
void |
printDiagnostics(java.io.PrintStream printStream)
|
java.lang.String |
toString()
Returns a string representation of the recordType, primarily for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RecordTypeImpl(Name recordTypeName)
public RecordTypeImpl(Name recordTypeName,
FieldType[] fieldTypes)
| Method Detail |
|---|
public FieldType[] getFieldTypes()
getFieldTypes in interface RecordTypepublic Name getName()
RecordType
getName in interface RecordTypepublic int getFieldIndex(Name name)
RecordType
getFieldIndex in interface RecordTypename - the name of the field.
public FieldType getFieldType(int index)
RecordType
getFieldType in interface RecordTypeindex - the index of the field type.
@Deprecated public FieldType getFieldTypeAt(int index)
RecordType.getFieldType(int)
getFieldTypeAt in interface RecordTypeindex - the index of the field type.
public int count()
count in interface RecordTypepublic int fieldCount()
fieldCount in interface RecordTypepublic java.lang.String toString()
toString in class java.lang.Objectpublic void printDiagnostics(java.io.PrintStream printStream)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||