org.kabeja.dxf.objects
Class DXFDictionary

java.lang.Object
  extended by org.kabeja.dxf.objects.DXFObject
      extended by org.kabeja.dxf.objects.DXFDictionary

public class DXFDictionary
extends DXFObject


Field Summary
protected  java.util.ArrayList records
           
 
Fields inherited from class org.kabeja.dxf.objects.DXFObject
doc, handleID, hardID, softID
 
Constructor Summary
DXFDictionary()
           
 
Method Summary
protected  org.kabeja.dxf.objects.DXFDictionary.DXFDictionaryRecord findByID(java.lang.String id)
           
protected  org.kabeja.dxf.objects.DXFDictionary.DXFDictionaryRecord findByName(java.lang.String name)
           
 DXFDictionary getDXFDictionaryForID(java.lang.String id)
          Searches recursive for the dictionary which holds the ID
 DXFObject getDXFObjectByID(java.lang.String id)
          Gets the
 DXFObject getDXFObjectByName(java.lang.String name)
           
 java.util.Iterator getDXFObjectIterator()
           
 java.lang.String getNameForDXFObjectID(java.lang.String id)
           
 java.lang.String getObjectType()
           
 boolean hasDXFObjectByID(java.lang.String id)
           
 void putDXFObject(DXFObject obj)
           
 void putDXFObjectRelation(java.lang.String name, java.lang.String id)
           
 
Methods inherited from class org.kabeja.dxf.objects.DXFObject
getHardOwnerID, getID, getSoftPointerID, setDXFDocument, setHardOwnerID, setID, setSoftPointerID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

records

protected java.util.ArrayList records
Constructor Detail

DXFDictionary

public DXFDictionary()
Method Detail

getObjectType

public java.lang.String getObjectType()
Specified by:
getObjectType in class DXFObject

hasDXFObjectByID

public boolean hasDXFObjectByID(java.lang.String id)

getNameForDXFObjectID

public java.lang.String getNameForDXFObjectID(java.lang.String id)

getDXFObjectByID

public DXFObject getDXFObjectByID(java.lang.String id)
Gets the

Parameters:
id -
Returns:
the DXFObject or null if there is no such DXFObject
See Also:
with the specified ID.

getDXFObjectByName

public DXFObject getDXFObjectByName(java.lang.String name)

putDXFObject

public void putDXFObject(DXFObject obj)

putDXFObjectRelation

public void putDXFObjectRelation(java.lang.String name,
                                 java.lang.String id)

findByName

protected org.kabeja.dxf.objects.DXFDictionary.DXFDictionaryRecord findByName(java.lang.String name)

findByID

protected org.kabeja.dxf.objects.DXFDictionary.DXFDictionaryRecord findByID(java.lang.String id)

getDXFDictionaryForID

public DXFDictionary getDXFDictionaryForID(java.lang.String id)
Searches recursive for the dictionary which holds the ID

Parameters:
id -
Returns:
the dictionary or null

getDXFObjectIterator

public java.util.Iterator getDXFObjectIterator()
Returns:
iterator over all DXFObjects in this dictionary