Class TypeValue

  • All Implemented Interfaces:
    ITypeValue, IValue

    public class TypeValue
    extends AbstractValue
    implements ITypeValue
    Define the generic value map which will represent the operation input and output of any primitive type.
    • Method Detail

      • get

        public java.lang.Object get()
        Return the actual value object.
        Specified by:
        get in interface ITypeValue
        Returns:
      • get

        public <T> T get​(java.lang.Class<T> type)
        Get the value by converting it into the given type.
        Specified by:
        get in interface ITypeValue
        Parameters:
        type - The class of the type
        Returns:
      • get

        public <T> T get​(java.lang.Class<T> type,
                         T defaultValue)
        Get the value by converting it into the given type. It should return the default value if value empty
        Specified by:
        get in interface ITypeValue
        Parameters:
        type - The class of the type
        defaultValue - The default value to use if the named property does not exist or cannot be converted to the requested type. The default value is also used to define the type to convert the value to. If this is null any existing property is not converted.
        Returns:
      • getResult

        public java.lang.Object getResult()
      • isReference

        public static boolean isReference​(PropertyType type,
                                          PropertyFormatType formatType,
                                          java.lang.Object value)
        Checks whether passed value is sas url or not.
        Parameters:
        type -
        formatType -
        value -
        Returns:
      • isReference

        public static boolean isReference​(TypeValue typeValue)
        check whether typeValue represents sas url or not.
        Parameters:
        typeValue -
        Returns: