|
|||||||||
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 RecordType
public Name getName()
RecordType
getName
in interface RecordType
public int getFieldIndex(Name name)
RecordType
getFieldIndex
in interface RecordType
name
- the name of the field.
public FieldType getFieldType(int index)
RecordType
getFieldType
in interface RecordType
index
- the index of the field type.
@Deprecated public FieldType getFieldTypeAt(int index)
RecordType.getFieldType(int)
getFieldTypeAt
in interface RecordType
index
- the index of the field type.
public int count()
count
in interface RecordType
public int fieldCount()
fieldCount
in interface RecordType
public java.lang.String toString()
toString
in class java.lang.Object
public 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 |