FileDocCategorySizeDatePackage
LegacyHookGetFields.javaAPI DocJava SE 5 API3864Fri Aug 26 14:54:28 BST 2005com.sun.corba.se.impl.orbutil

LegacyHookGetFields

public class LegacyHookGetFields extends ObjectInputStream$GetField

Fields Summary
private Hashtable
fields
Constructors Summary
LegacyHookGetFields(Hashtable fields)


     
        this.fields = fields;
    
Methods Summary
public booleandefaulted(java.lang.String name)
Return true if the named field is defaulted and has no value in this stream.

        return (!fields.containsKey(name));
    
public floatget(java.lang.String name, float defvalue)
Get the value of the named float field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Float)fields.get(name)).floatValue();

    
public doubleget(java.lang.String name, double defvalue)
Get the value of the named double field from the persistent field.

        if (defaulted(name))
            return defvalue;
        else return ((Double)fields.get(name)).doubleValue();

    
public java.lang.Objectget(java.lang.String name, java.lang.Object defvalue)
Get the value of the named Object field from the persistent field.

        if (defaulted(name))
            return defvalue;
        else return fields.get(name);

    
public booleanget(java.lang.String name, boolean defvalue)
Get the value of the named boolean field from the persistent field.

        if (defaulted(name))
            return defvalue;
        else return ((Boolean)fields.get(name)).booleanValue();
    
public charget(java.lang.String name, char defvalue)
Get the value of the named char field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Character)fields.get(name)).charValue();

    
public byteget(java.lang.String name, byte defvalue)
Get the value of the named byte field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Byte)fields.get(name)).byteValue();

    
public shortget(java.lang.String name, short defvalue)
Get the value of the named short field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Short)fields.get(name)).shortValue();

    
public intget(java.lang.String name, int defvalue)
Get the value of the named int field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Integer)fields.get(name)).intValue();

    
public longget(java.lang.String name, long defvalue)
Get the value of the named long field from the persistent fields.

        if (defaulted(name))
            return defvalue;
        else return ((Long)fields.get(name)).longValue();

    
public java.io.ObjectStreamClassgetObjectStreamClass()
Get the ObjectStreamClass that describes the fields in the stream.

        return null;
    
public java.lang.StringtoString()

        return fields.toString();