|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.servingxml.util.record.RecordTypeBuilder
public class RecordTypeBuilder
A RecordTypeBuilder
class builds a record.
Constructor Summary | |
---|---|
RecordTypeBuilder(Name recordTypeName)
Creates a record builder with no initial field types. |
|
RecordTypeBuilder(Name recordTypeName,
int capacity)
Creates a record builder with no initial field types. |
|
RecordTypeBuilder(RecordType recordType)
Creates a record builder with no initial field types. |
Method Summary | |
---|---|
protected int |
addFieldType(FieldType fieldType)
Adds a field type. |
void |
clear()
|
int |
fieldCount()
Gets the number of fields |
protected int |
getFieldIndex(Name name)
|
Name |
getFieldName(int i)
|
void |
setFieldType(Name name)
Sets a value for a field. |
RecordType |
toRecordType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordTypeBuilder(RecordType recordType)
public RecordTypeBuilder(Name recordTypeName)
public RecordTypeBuilder(Name recordTypeName, int capacity)
Method Detail |
---|
public void setFieldType(Name name)
name
- The field name.public int fieldCount()
public RecordType toRecordType()
public Name getFieldName(int i)
protected int getFieldIndex(Name name)
protected int addFieldType(FieldType fieldType)
fieldType
- A field type.public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |