public class DDFSubfield
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
byteSize
The number of bytes the field took up in the data file.
|
protected DDFSubfieldDefinition |
defn
A DDFSubfieldDefinition defining the admin part of the file
that contains the subfield data.
|
protected java.lang.Object |
value
The object containing the value of the field.
|
Modifier | Constructor and Description |
---|---|
protected |
DDFSubfield() |
|
DDFSubfield(DDFSubfieldDefinition poSFDefn,
byte[] pachFieldData,
int nBytesRemaining)
Create a subfield with a definition and the bytes containing
the information for the value.
|
|
DDFSubfield(DDFSubfieldDefinition ddfsd,
java.lang.Object value)
Create a subfield with a definition and a value.
|
Modifier and Type | Method and Description |
---|---|
float |
floatValue()
Get the value of the subfield as a float.
|
int |
getByteSize() |
DDFSubfieldDefinition |
getDefn() |
java.lang.Object |
getValue()
Get the value of the subfield.
|
int |
intValue()
Get the value of the subfield as an int.
|
void |
setDefn(DDFSubfieldDefinition ddsfd) |
void |
setValue(java.lang.Object o)
Set the value of the subfield.
|
java.lang.String |
stringValue() |
java.lang.String |
toString()
Return a string 'key = value', describing the field and its
value.
|
protected DDFSubfieldDefinition defn
protected java.lang.Object value
protected int byteSize
protected DDFSubfield()
public DDFSubfield(DDFSubfieldDefinition ddfsd, java.lang.Object value)
public DDFSubfield(DDFSubfieldDefinition poSFDefn, byte[] pachFieldData, int nBytesRemaining)
public int getByteSize()
public void setDefn(DDFSubfieldDefinition ddsfd)
public DDFSubfieldDefinition getDefn()
public void setValue(java.lang.Object o)
public java.lang.Object getValue()
public int intValue()
public float floatValue()
public java.lang.String stringValue()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details