java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.ini.Section

public class Section extends Object
A Section is HashMap of a data structure we read from the ini. We have a type (HIGHLIGHT] and Key-Value Pairs. [HIGHLIGHT] CUSTOMPROPERTY = 1 X = 745 Y = 63 WIDTH = 203 HEIGHT = 156 PAGE = 1 EDIT = 1 FILLCOLOR = 255, 255, 0 TRANSPARENT = 1 LINEWIDTH = 0
Author:
jek
  • Constructor Details

    • Section

      public Section(String aType, Map<String,String> aKeyValuePair)
      Constructor.
      Parameters:
      aType - type of section
      aKeyValuePair - keyValuePairs of Parameter
  • Method Details

    • getKeyValuePair

      public Map<String,String> getKeyValuePair()
      Returns:
      the keyValuePair
    • size

      public int size()
      Returns:
      size
    • setKeyValuePair

      public void setKeyValuePair(Map<String,String> aKeyValuePair)
      Parameters:
      aKeyValuePair - the keyValuePair to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String aType)
      Parameters:
      aType - the type to set
    • getSectionByType

      public static Section getSectionByType(List<Section> sections, String type)
      Parameters:
      sections - ArrayList of Sections
      type - type
      Returns:
      Section Section
    • renderSection

      public String renderSection()
      renderSection .
      Returns:
      renderedSection renderedSection
    • getCustomerProperty

      public String getCustomerProperty()
      getCustomerProperty .
      Returns:
      customerProperty customerProperty
    • isVisible

      public boolean isVisible()
      isVisible in Virtual Viewer.
      Returns:
      isVisible in Virtual Viewer
    • getValue

      public static String getValue(Section section, String key)
      Resolve a String value from a Section with the given key.
      Parameters:
      section - section
      key - key
      Returns:
      customerProperty customerProperty
    • isCustom

      public boolean isCustom()
      Returns:
      whether this is the CUSTOM section
    • hasAcls

      public boolean hasAcls()
      Returns:
      whether the section has acls. Will only be written to the CUSTOM section
    • hasBlackMarkers

      public boolean hasBlackMarkers()
      Returns:
      whether the section has black markers. Will only be written to the CUSTOM section.