public class Attribute extends Object
Constructor and Description |
---|
Attribute()
A container of information about an attribute.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
addValues(ArrayList<String> values)
Add values to the array of values already associated with the attribute.
|
void |
dump()
Display a description of each attribute.
|
int |
getDataType()
Retrieve the current data type of the attribute.
|
String |
getName()
Retrieve the current name of the attribute.
|
long |
getStartByte()
Retrieve the current start byte of the data associated with the attribute.
|
String |
getValueLongPart()
Retrieve the short name of attribute.
|
ArrayList<String> |
getValues()
Get the current list of values associated with the attribute.
|
String |
getValueShortPart()
Retrieve the short name of attribute.
|
String |
getValueString()
Retrieve all values as a space separated list.
|
String |
getValueString(String delim)
Retrieve all values as a delimited string.
|
void |
setDataType(int dataType)
Set the data type of the attribute.
|
void |
setName(String name)
Set the name of the attribute.
|
void |
setStartByte(long startByte)
Set the start byte of the data associated with the attribute.
|
void |
setValue(String value)
Set the array of values associated with the attribute.
|
void |
setValues(ArrayList<String> values)
Set the array of values associated with the attribute.
|
public void dump()
public String getValueShortPart()
public String getValueLongPart()
public void setName(String name)
name
- the Name of the attributepublic String getName()
public void setDataType(int dataType)
dataType
- the dataType of the attribute.public int getDataType()
public void setStartByte(long startByte)
startByte
- the start byte of the data associated with the attribute.public long getStartByte()
public void setValues(ArrayList<String> values)
values
- a list of values to associate with the attribute.public void setValue(String value)
values
- a list of values to associate with the attribute.public ArrayList<String> addValues(ArrayList<String> values)
values
- a list of values to add to the existing list of values.public ArrayList<String> getValues()
public String getValueString()
Copyright © 2014-2015 Regents University of California. All Rights Reserved.