Class BasePortConfig

    • Constructor Detail

      • BasePortConfig

        public BasePortConfig()

        Create a new empty port configuration.

      • BasePortConfig

        public BasePortConfig​(IBasePort source)

        Create a new port from the specified interface source.

        Parameters:
        source - source instance
      • BasePortConfig

        public BasePortConfig​(com.typesafe.config.Config config)

        Create a new port from HOCON configuration.

        Parameters:
        config - HOCON representation of the port
    • Method Detail

      • isRequired

        public boolean isRequired()

        Return true if the port is required, false otherwise.

        Returns:
        true or false
      • setRequired

        public BasePortConfig setRequired​(boolean required)

        Set true if the port is required, false otherwise.

        Parameters:
        required - true if required, false otherwise
        Returns:
        this object
      • getDescription

        public String getDescription()

        Return the port's description, null if none

        Returns:
        description, null if none
      • setDescription

        public BasePortConfig setDescription​(String description)

        Set this port's description, null if none.

        Parameters:
        description - description, null if none
        Returns:
        this object
      • fillMap

        protected void fillMap​(Map<String,​Object> props)

        Add this object's properties to the specified map.

        Specified by:
        fillMap in class BaseConfig
        Parameters:
        props - map to fill