Class BasePropertiesModel

    • Constructor Detail

      • BasePropertiesModel

        public BasePropertiesModel()
    • Method Detail

      • getPropertyOrNull

        @Nullable
        public final java.lang.String getPropertyOrNull​(@NotNull
                                                        java.lang.String key)
        Specified by:
        getPropertyOrNull in interface TeamCityProperties.Model
        Parameters:
        key - name to check
        Returns:
        property or null
      • storeDefaultValue

        public final void storeDefaultValue​(@NotNull
                                            java.lang.String key,
                                            @Nullable
                                            java.lang.String defaultValue)
        Description copied from interface: TeamCityProperties.Model
        Informs the model about the default property value.
        Specified by:
        storeDefaultValue in interface TeamCityProperties.Model
        Parameters:
        key - name to check
        defaultValue - string representation of the requested default value, is used for statistical purposes
      • getSystemProperties

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getSystemProperties()
        Specified by:
        getSystemProperties in interface TeamCityProperties.Model
        Returns:
        JVM provided properties map
      • getUserDefinedProperties

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getUserDefinedProperties()
        Specified by:
        getUserDefinedProperties in interface TeamCityProperties.Model
        Returns:
        User provided properties map. In some implementations internal.properties file is used
      • getSystemProperty

        @Nullable
        protected java.lang.String getSystemProperty​(@NotNull
                                                     java.lang.String key)
      • getUserDefinedProperty

        @Nullable
        protected java.lang.String getUserDefinedProperty​(@NotNull
                                                          java.lang.String key)
      • getUnusedUserDefinedProperties

        @NotNull
        public java.util.Collection<java.lang.String> getUnusedUserDefinedProperties()
      • getDefaultUsedUserDefinedProperties

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getDefaultUsedUserDefinedProperties()
      • propertiesToMap

        @NotNull
        protected static java.util.Map<java.lang.String,​java.lang.String> propertiesToMap​(@NotNull
                                                                                                java.util.Properties properties)