public class RecordDescriptorBuilder extends UserTypeBuilder
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<java.lang.String> |
fieldNames
Declares a vector to hold the field name strings
|
protected java.util.Vector<java.lang.String> |
fieldTypes
Declares a vector to hold the field type strings
|
storageType
Constructor and Description |
---|
RecordDescriptorBuilder(java.lang.String n)
Default constructor takes a string name and array of attributes (fields)
|
RecordDescriptorBuilder(java.lang.String n,
AttributeDescriptor[] attrs)
Overridden constructor takes a string name and array of attributes (fields)
|
RecordDescriptorBuilder(java.lang.String n,
TypeTable types,
AttributeDescriptor[] attrs)
Overridden constructor takes a string name, string storage type, a low/high range and
an exceptional value.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(java.lang.String n,
java.lang.String t)
adds a field name and type to the list for the pending record descriptor
|
AttributeDescriptor[] |
getAttributes()
Gets the attributes for this RD
|
TypeTable |
getTypes()
Returns the type table.
|
UserType |
makeUserType()
Returns a UserType object that has been instantiated as a RangedUserType object.
|
void |
setAttributes(AttributeDescriptor[] a)
Sets the attributes to cloned objects passed in the argument
|
void |
setTypes(TypeTable t)
Sets the type table.
|
java.lang.String |
toString()
diagnostic utility method for dumping this class to a string
|
getName, getStorageTypeName, getStorageTypeValue, setName, setStorageType, setStorageType
protected java.util.Vector<java.lang.String> fieldNames
protected java.util.Vector<java.lang.String> fieldTypes
public RecordDescriptorBuilder(java.lang.String n)
public RecordDescriptorBuilder(java.lang.String n, AttributeDescriptor[] attrs)
public RecordDescriptorBuilder(java.lang.String n, TypeTable types, AttributeDescriptor[] attrs)
public void setTypes(TypeTable t)
public TypeTable getTypes()
public void setAttributes(AttributeDescriptor[] a)
public AttributeDescriptor[] getAttributes()
public void addField(java.lang.String n, java.lang.String t)
public UserType makeUserType()
makeUserType
in class UserTypeBuilder
public java.lang.String toString()
toString
in class UserTypeBuilder