Class ConfigIniSection

java.lang.Object
com.saperion.ngc.configuration.ConfigIniSection

public class ConfigIniSection extends Object
Represents a section in one of saperion's ini-files.
  • Constructor Details

    • ConfigIniSection

      public ConfigIniSection(String name, Map<String,String> properties)
      Creates a new ConfigIniSection with the name and properties of the provided SaUserSetting.
      Parameters:
      name - name of the section without tenant ID
      properties - properties contained in the section
  • Method Details

    • getProperty

      public String getProperty(String propertyName)
      Returns the property with the specified name.
      Parameters:
      propertyName - name of the property (not case sensitive)
      Returns:
      value or null if not found
    • getBooleanProperty

      public boolean getBooleanProperty(String propertyName, boolean defaultVal)
      Returns the boolean value of the specified property. If not found, the default value will be returned. If the value cannot be parsed as a boolean, the method will return false.
      Parameters:
      propertyName - name of the property (not case sensitive)
      defaultVal - default value if the property does not exist
      Returns:
      boolean value
    • getName

      public String getName()
      Returns:
      the name of the section in the ini file that is represented by this ConfigIniSection
    • hasProperty

      public boolean hasProperty(String propertyName)
      Parameters:
      propertyName - name of the property to check (not case sensitive)
      Returns:
      true if the section contains the specified property
    • toString

      public String toString()
      Overrides:
      toString in class Object