Class AbstractEnvironmentGroup

All Implemented Interfaces:
Streamable
Direct Known Subclasses:
ActiveEnvironmentGroup, ResourceEnvironmentGroup

public abstract class AbstractEnvironmentGroup extends AbstractNamedAFPObject
A base class that encapsulates common features of ActiveEnvironmentGroup and ResourceEnvironmentGroup
  • Field Details

    • mapDataResources

      protected final List mapDataResources
      the collection of MapDataResource objects
    • mapPageOverlays

      protected List mapPageOverlays
      the collection of MapPageOverlay objects
  • Constructor Details

    • AbstractEnvironmentGroup

      public AbstractEnvironmentGroup(String name)
      Main constructor
      Parameters:
      name - the object name
  • Method Details

    • createOverlay

      public void createOverlay(String name)
      Actually creates the MPO object. Also creates the supporting object (an IPO)
      Parameters:
      name - the name of the overlay to be used
    • getLastElement

      protected Object getLastElement(List list)
      Get last element.
      Parameters:
      list - of elements
      Returns:
      last element or null if none
    • writeContent

      protected void writeContent(OutputStream os) throws IOException
      Helper method to write the contents of the Object.
      Overrides:
      writeContent in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred