com.partnersoft.formats.dxf
Class DxfConfigurableApplicationDefinedStructure

java.lang.Object
  extended by com.partnersoft.formats.dxf.DxfConfigurableApplicationDefinedStructure
All Implemented Interfaces:
DxfApplicationDefinedStructure

public class DxfConfigurableApplicationDefinedStructure
extends java.lang.Object
implements DxfApplicationDefinedStructure

A runtime-configurable version of DxfApplicationDefinedStructure. Use it for unknown, uninteresting, or otherwise un-reified varieties. Stores the application name as a property and simply stores a copy of the groups provided.

Copyright 2006 Partner Software, Inc.

Version:
$Id: DxfConfigurableApplicationDefinedStructure.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Constructor Summary
DxfConfigurableApplicationDefinedStructure()
           
 
Method Summary
 java.lang.String getApplicationName()
          The application name of this structure.
 java.util.List<DxfGroup> getGroups()
          Get the internal state as DXFGroups.
 void setGroups(java.util.List<DxfGroup> groups)
          Set the internal state based on the given groups.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DxfConfigurableApplicationDefinedStructure

public DxfConfigurableApplicationDefinedStructure()
Method Detail

getApplicationName

public java.lang.String getApplicationName()
Description copied from interface: DxfApplicationDefinedStructure
The application name of this structure. For reified standard types, it this will be the same for all instances of the same implementing Java class, so a typical example might be:
 \/**
  * Application name of this structure. Always returns "ACAD_REACTORS".
  * \@return "ACAD_REACTORS"
  *\/
 public String getApplicationName() {
     return "ACAD_REACTORS";
 }
 

Run-time discovered application structures may simply store the application name for reporting, however.

Specified by:
getApplicationName in interface DxfApplicationDefinedStructure
Returns:
application name of this application-defined structure

getGroups

public java.util.List<DxfGroup> getGroups()
Description copied from interface: DxfApplicationDefinedStructure
Get the internal state as DXFGroups. These will begin with the 102 starting group and end with the 102 ending group. This is a fresh copy of the state that you may do with as you wish.

Specified by:
getGroups in interface DxfApplicationDefinedStructure
Returns:
list of groups containing the state data for this structure

setGroups

public void setGroups(java.util.List<DxfGroup> groups)
Description copied from interface: DxfApplicationDefinedStructure
Set the internal state based on the given groups. These must begin with the 102 starting group and end with the 102 ending group. The state is copied (in some manner) so you may re-use or discard the list as you wish.

Specified by:
setGroups in interface DxfApplicationDefinedStructure
Parameters:
groups - list of groups containing data for this structure

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object