nwnintf.format.itp.element
Class ItpResrefElt

java.lang.Object
  |
  +--nwnintf.format.itp.ItpElement
        |
        +--nwnintf.format.itp.element.ItpResrefElt

public class ItpResrefElt
extends ItpElement


Field Summary
 
Fields inherited from class nwnintf.format.itp.ItpElement
DATA, NAMEIDX, SIZE, TYPE, TYPE_CAPREF, TYPE_DATREF, TYPE_FLOAT32, TYPE_FLOAT64, TYPE_INT16, TYPE_INT32, TYPE_INT64, TYPE_INT8, TYPE_LIST, TYPE_RESREF, TYPE_STRING, TYPE_STRREF, TYPE_UINT16, TYPE_UINT32, TYPE_UINT64, TYPE_UINT8
 
Constructor Summary
ItpResrefElt(ItpFile f)
           
 
Method Summary
protected  int childData(ItpWriter w)
          Write the element type-specific data to ItpWriter and return the contents that should go in the data field in the element structure for output.
 void read(byte[] bytes, int eltoffset, int varnameoffset, int vardataoffset, int listoffset)
           
 void setValue(java.lang.String val)
           
 int type()
           
 java.lang.String value()
           
 
Methods inherited from class nwnintf.format.itp.ItpElement
file, name, newElement, removeChildren, setName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItpResrefElt

public ItpResrefElt(ItpFile f)
Method Detail

read

public void read(byte[] bytes,
                 int eltoffset,
                 int varnameoffset,
                 int vardataoffset,
                 int listoffset)
Overrides:
read in class ItpElement

type

public int type()
Specified by:
type in class ItpElement

childData

protected int childData(ItpWriter w)
                 throws java.io.IOException
Description copied from class: ItpElement
Write the element type-specific data to ItpWriter and return the contents that should go in the data field in the element structure for output.

Specified by:
childData in class ItpElement
java.io.IOException

value

public java.lang.String value()

setValue

public void setValue(java.lang.String val)