Class Section
- java.lang.Object
-
- com.saperion.ngc.viewer.virtualviewer.annotation.ini.Section
-
public class Section extends java.lang.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 Summary
Constructors Constructor Description Section(java.lang.String aType, java.util.Map<java.lang.String,java.lang.String> aKeyValuePair)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCustomerProperty()
getCustomerProperty .java.util.Map<java.lang.String,java.lang.String>
getKeyValuePair()
static Section
getSectionByType(java.util.List<Section> sections, java.lang.String type)
java.lang.String
getType()
static java.lang.String
getValue(Section section, java.lang.String key)
Resolve a String value from a Section with the given key.boolean
hasAcls()
boolean
hasBlackMarkers()
boolean
isCustom()
boolean
isVisible()
isVisible in Virtual Viewer.java.lang.String
renderSection()
renderSection .void
setKeyValuePair(java.util.Map<java.lang.String,java.lang.String> aKeyValuePair)
void
setType(java.lang.String aType)
int
size()
-
-
-
Method Detail
-
getKeyValuePair
public java.util.Map<java.lang.String,java.lang.String> getKeyValuePair()
- Returns:
- the keyValuePair
-
size
public int size()
- Returns:
- size
-
setKeyValuePair
public void setKeyValuePair(java.util.Map<java.lang.String,java.lang.String> aKeyValuePair)
- Parameters:
aKeyValuePair
- the keyValuePair to set
-
getType
public java.lang.String getType()
- Returns:
- the type
-
setType
public void setType(java.lang.String aType)
- Parameters:
aType
- the type to set
-
getSectionByType
public static Section getSectionByType(java.util.List<Section> sections, java.lang.String type)
- Parameters:
sections
- ArrayList of Sectionstype
- type- Returns:
- Section Section
-
renderSection
public java.lang.String renderSection()
renderSection .- Returns:
- renderedSection renderedSection
-
getCustomerProperty
public java.lang.String getCustomerProperty()
getCustomerProperty .- Returns:
- customerProperty customerProperty
-
isVisible
public boolean isVisible()
isVisible in Virtual Viewer.- Returns:
- isVisible in Virtual Viewer
-
getValue
public static java.lang.String getValue(Section section, java.lang.String key)
Resolve a String value from a Section with the given key.- Parameters:
section
- sectionkey
- 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.
-
-