Open SiteSearch 4.1.1
Final

ORG.oclc.z39
Class ztypes

java.lang.Object
  |
  +--ORG.oclc.z39.ztypes

public class ztypes
extends Object

ztypes is a utility class that provides methods to get and put primitive data into Z39.50 transactions in specified formats.


Field Summary
static int INTEGER
           
static int LANGUAGE
           
static int STRING
           
static int TEXT
           
 
Constructor Summary
ztypes()
           
 
Method Summary
static String getHumanString(DataDir t)
           
static int getInteger(DataDir t)
           
static String getString(DataDir t)
           
static void putHumanString(DataDir t, String language, String s)
          Put a HumanString under the specified parent
static void putInteger(DataDir t, int i)
          Put an int into a StringOrNumeric field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE

public static final int LANGUAGE

TEXT

public static final int TEXT

STRING

public static final int STRING

INTEGER

public static final int INTEGER
Constructor Detail

ztypes

public ztypes()
Method Detail

getHumanString

public static String getHumanString(DataDir t)
Returns:
String from a HumanString field

putHumanString

public static void putHumanString(DataDir t,
                                  String language,
                                  String s)
Put a HumanString under the specified parent
Parameters:
t - parent
language - of the string
s - the string

getString

public static String getString(DataDir t)
Returns:
String from a StringOrNumeric field

getInteger

public static int getInteger(DataDir t)
Returns:
int from a StringOrNumeric field

putInteger

public static void putInteger(DataDir t,
                              int i)
Put an int into a StringOrNumeric field
Parameters:
t - parent
i - int

Open SiteSearch 4.1.1
Final