类 ConstructorArgumentValues.ValueHolder

    • 构造器详细资料

      • ValueHolder

        public ValueHolder​(Object value)
        Create a new ValueHolder for the given value.
        参数:
        value - the argument value
      • ValueHolder

        public ValueHolder​(Object value,
                           String type)
        Create a new ValueHolder for the given value and type.
        参数:
        value - the argument value
        type - the type of the constructor argument
      • ValueHolder

        public ValueHolder​(Object value,
                           String type,
                           String name)
        Create a new ValueHolder for the given value, type and name.
        参数:
        value - the argument value
        type - the type of the constructor argument
        name - the name of the constructor argument
    • 方法详细资料

      • getValue

        public Object getValue()
        Return the value for the constructor argument.
      • setType

        public void setType​(String type)
        Set the type of the constructor argument.
      • getType

        public String getType()
        Return the type of the constructor argument.
      • setName

        public void setName​(String name)
        Set the name of the constructor argument.
      • getName

        public String getName()
        Return the name of the constructor argument.
      • setSource

        public void setSource​(Object source)
        Set the configuration source Object for this metadata element.

        The exact type of the object will depend on the configuration mechanism used.

      • isConverted

        public boolean isConverted()
        Return whether this holder contains a converted value already (true), or whether the value still needs to be converted (false).
      • setConvertedValue

        public void setConvertedValue​(Object value)
        Set the converted value of the constructor argument, after processed type conversion.
      • getConvertedValue

        public Object getConvertedValue()
        Return the converted value of the constructor argument, after processed type conversion.