org.freehep.postscript
Class PSDictionary

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSComposite
          extended by org.freehep.postscript.PSDictionary
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PSFontDictionary

public class PSDictionary
extends PSComposite

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSDictionary.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

Field Summary
protected  Hashtable table
           
 
Fields inherited from class org.freehep.postscript.PSComposite
access, EXECUTE_ONLY, NONE, READ_ONLY, UNLIMITED
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
  PSDictionary()
           
protected PSDictionary(Hashtable t)
           
  PSDictionary(int n)
           
 
Method Summary
 int capacity()
           
 Object clone()
           
 PSObject copy()
           
 void copyInto(PSDictionary d)
           
 String cvs()
           
 String dumpKeys()
           
 boolean equals(Object o)
           
 boolean execute(OperandStack os)
           
 void forAll(PSArray proc, OperandStack os)
           
 PSObject get(PSObject key)
           
 PSObject get(String key)
           
 boolean getBoolean(String key)
           
 PSDictionary getDictionary(String key)
           
 int getInteger(String key)
           
 PSNumber getNumber(String key)
           
 PSPackedArray getPackedArray(String key)
           
 double getReal(String key)
           
 String getString(String key)
           
 String getType()
           
 int hashCode()
           
 Object[] keys()
           
 void put(PSName key, String[] value)
           
 void put(PSObject key, PSObject value)
           
 void put(String key, boolean value)
           
 void put(String key, double value)
           
 void put(String key, int value)
           
 void put(String key, PSObject value)
           
 void put(String key, String value)
           
 PSObject remove(PSObject key)
           
 PSObject remove(String key)
           
 int size()
           
 String toString()
           
 
Methods inherited from class org.freehep.postscript.PSComposite
accessExecute, accessRead, accessWrite, changeAccess
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, error, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

table

protected Hashtable table
Constructor Detail

PSDictionary

protected PSDictionary(Hashtable t)

PSDictionary

public PSDictionary(int n)

PSDictionary

public PSDictionary()
Method Detail

execute

public boolean execute(OperandStack os)
Specified by:
execute in class PSObject

getType

public String getType()
Specified by:
getType in class PSObject

capacity

public int capacity()

size

public int size()

put

public void put(PSObject key,
                PSObject value)

put

public void put(String key,
                PSObject value)

put

public void put(String key,
                String value)

put

public void put(String key,
                int value)

put

public void put(String key,
                double value)

put

public void put(String key,
                boolean value)

put

public void put(PSName key,
                String[] value)

keys

public Object[] keys()

get

public PSObject get(PSObject key)

get

public PSObject get(String key)

getString

public String getString(String key)

getNumber

public PSNumber getNumber(String key)

getInteger

public int getInteger(String key)

getReal

public double getReal(String key)

getBoolean

public boolean getBoolean(String key)

getPackedArray

public PSPackedArray getPackedArray(String key)

getDictionary

public PSDictionary getDictionary(String key)

remove

public PSObject remove(PSObject key)

remove

public PSObject remove(String key)

copyInto

public void copyInto(PSDictionary d)

forAll

public void forAll(PSArray proc,
                   OperandStack os)

hashCode

public int hashCode()
Specified by:
hashCode in class PSObject

equals

public boolean equals(Object o)
Specified by:
equals in class PSObject

clone

public Object clone()
Specified by:
clone in class PSObject

copy

public PSObject copy()
Specified by:
copy in class PSObject

cvs

public String cvs()
Specified by:
cvs in class PSObject

toString

public String toString()
Overrides:
toString in class PSObject

dumpKeys

public String dumpKeys()


Copyright © 2000-2006 FreeHEP. All Rights Reserved.