MetaTF API

MetaTF.Runtime
Class StringTraceField

java.lang.Object
  |
  +--MetaTF.Runtime.TraceField
        |
        +--MetaTF.Runtime.StringTraceField

public class StringTraceField
extends TraceField

A TraceField representing a field with string type

Version:
rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
Author:
Richard Jones

Field Summary
 java.lang.String defaultValue
          The value of the string
 
Fields inherited from class MetaTF.Runtime.TraceField
encodingType, name
 
Constructor Summary
StringTraceField(java.lang.String n, int it)
          Allocate a new object representing a encoding of a field of string type
StringTraceField(java.lang.String n, int it, java.lang.String i)
          Allocate a new object representing a encoding of a field of string type
StringTraceField(java.lang.String n, int it, java.lang.String i, long zero)
          Allocate a new object representing a encoding of a field of string type
 
Method Summary
(package private)  java.lang.String getValue()
           
 void setInterpretationType(int i)
          Set the encoding type of this field (none, default, ...)
(package private)  void setValue(long v)
          Set the first encoding value
(package private)  void setValue(java.lang.String v)
          Set the first encoding value
(package private)  void setValue2(long v)
          Set the second encoding value
 
Methods inherited from class MetaTF.Runtime.TraceField
getInterpretationType
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

public java.lang.String defaultValue
The value of the string
Constructor Detail

StringTraceField

public StringTraceField(java.lang.String n,
                        int it,
                        java.lang.String i,
                        long zero)
Allocate a new object representing a encoding of a field of string type
Parameters:
n - the name of the field
it - the encoding
i - the string
zero - always ignored

StringTraceField

public StringTraceField(java.lang.String n,
                        int it,
                        java.lang.String i)
Allocate a new object representing a encoding of a field of string type
Parameters:
n - the name of the field
it - the encoding
i - the string

StringTraceField

public StringTraceField(java.lang.String n,
                        int it)
Allocate a new object representing a encoding of a field of string type
Parameters:
n - the name of the field
it - the encoding
Method Detail

setInterpretationType

public void setInterpretationType(int i)
                           throws BadRecordException
Description copied from class: TraceField
Set the encoding type of this field (none, default, ...)
Overrides:
setInterpretationType in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the encoding
Throws:
BadRecordException - IF the encoding does not match the type of the field

setValue

void setValue(long v)
        throws BadRecordException
Description copied from class: TraceField
Set the first encoding value
Overrides:
setValue in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the value
Throws:
BadRecordException - IF the value is inappropriate for this type of field

setValue

void setValue(java.lang.String v)
        throws BadRecordException
Description copied from class: TraceField
Set the first encoding value
Overrides:
setValue in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
s - the value (a string)
Throws:
BadRecordException - IF the value is inappropriate for this type of field

setValue2

void setValue2(long v)
         throws BadRecordException
Description copied from class: TraceField
Set the second encoding value
Overrides:
setValue2 in class TraceField
Following copied from class: MetaTF.Runtime.TraceField
Parameters:
i - the value
Throws:
BadRecordException - IF the value is inappropriate for this type of field

getValue

java.lang.String getValue()

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF