org.kabeja.dxf.objects
Class DXFDictionary
java.lang.Object
org.kabeja.dxf.objects.DXFObject
org.kabeja.dxf.objects.DXFDictionary
public class DXFDictionary
- extends DXFObject
Field Summary |
protected java.util.ArrayList |
records
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
records
protected java.util.ArrayList records
DXFDictionary
public DXFDictionary()
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