|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--NWNFiles.GFFFile.Field
Constructor Summary | |
protected |
GFFFile.Field(long _type,
GFFFile.Structure _owner,
String _label)
Constructs a Field object and adds it to the _owner structure. |
protected |
GFFFile.Field(long _type,
GFFFile.Structure _owner,
String _label,
Object _data)
Constructs a Field object and adds it to the _owner structure. |
|
GFFFile.Field(long _type,
String _label,
Object _data)
Constructs a Field object. |
Method Summary | |
Object |
clone()
|
GFFFile.Field |
clone(GFFFile target)
Clones the field, the return object should be used in a specific GFFFile object. |
Object |
getData()
Returns the data contained by the field. |
String |
getLabel()
Returns the label of the field |
GFFFile.Structure |
getOwner()
Returns the Structure containing the field. |
long |
getType()
Returns the type of the field. |
void |
setData(Object data)
Sets the data of the field. |
void |
setLabel(String label)
Sets the label of the field. |
protected void |
setOwner(GFFFile.Structure _owner)
Sets the structure cotaining the field. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GFFFile.Field(long _type, String _label, Object _data) throws NameTooLong
_type
- Type of the field. See the FieldType
class for a list of types._label
- The label of the field_data
- An object representing the data of the field. See the FieldType
sub-classes for further information
NameTooLong
- If the label is longer than 16 characters.protected GFFFile.Field(long _type, GFFFile.Structure _owner, String _label) throws NameTooLong
_type
- Type of the field. See the FieldType
class for a list of types._owner
- The structure containing the field._label
- The label of the field
NameTooLong
- If the label is longer than 16 characters.protected GFFFile.Field(long _type, GFFFile.Structure _owner, String _label, Object _data) throws NameTooLong
_type
- Type of the field. See the FieldType
class for a list of types._owner
- The structure containing the field._label
- The label of the field_data
- An object representing the data of the field. See the FieldType
sub-classes for further information
NameTooLong
- If the label is longer than 16 characters.Method Detail |
public Object getData()
FieldType
class for more details on returned object.public String getLabel()
public GFFFile.Structure getOwner()
GFFFile.Structure
Structure object containing the field.public long getType()
FieldType
class for more deatails.public void setData(Object data)
data
- The new data.public void setLabel(String label) throws NameTooLong
label
- New label.
NameTooLong
- If the label is longer than 16 characters.protected void setOwner(GFFFile.Structure _owner)
_owner
- public String toString()
toString
in class Object
public Object clone()
clone
in class Object
public GFFFile.Field clone(GFFFile target)
target
- Target GFFFile object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |