Class ConfigurationProperty


  • public class ConfigurationProperty
    extends Object
    Deprecated.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Returns the property name.
      • getType

        public Class getType()
        Deprecated.
        Returns the type of value stored in this property
      • valueOf

        protected Object valueOf​(Object value)
        Deprecated.
        Converts an object of a different type to the type used by this property. If types are not convertible, an exception is thrown.
      • getValue

        public Object getValue()
        Deprecated.
        Returns the value currently stored in this property without any casting.
      • getValue

        public <T> T getValue​(Class<T> type)
        Deprecated.
        Returns the value currently stored in this property cast to the given type.
      • setValue

        public void setValue​(Object value)
        Deprecated.
        Overwrites the value currently stored in this property. It he passed type is not compatible with the defined type, an exception is thrown.
      • addAlias

        public ConfigurationProperty addAlias​(String... aliases)
        Deprecated.
        Adds an alias for this property. An alias is an alternate to the "name" field that can be used by the ConfigurationProvers to look up starting values.
      • getDescription

        public String getDescription()
        Deprecated.
        Returns a human-readable definition of this property
      • getDefaultValue

        public Object getDefaultValue()
        Deprecated.
        Returns the default value to use if no ConfigurationProviders override it.
      • setDefaultValue

        public ConfigurationProperty setDefaultValue​(Object defaultValue)
        Deprecated.
        Sets the default value to use if no ConfigurationProviders override it. Throws an exception if the given object is not compatible with the defined type.
      • getWasOverridden

        public boolean getWasOverridden()
        Deprecated.
        Returns true if the value has been set by a ConfigurationValueProvider or by setValue(Object)