Class ReferenceVariable

    • Field Detail

      • VARIABLE_DELEGATE

        public static final java.lang.String VARIABLE_DELEGATE
        See Also:
        Constant Field Values
      • referencedType

        @Property(required=true,
                  description="The type of the reference, ie: jenkins.Server")
        protected java.lang.String referencedType
    • Constructor Detail

      • ReferenceVariable

        public ReferenceVariable()
    • Method Detail

      • getReferencedType

        public java.lang.String getReferencedType()
      • setReferencedType

        public void setReferencedType​(java.lang.String referencedType)
      • setUntypedValue

        public void setUntypedValue​(java.lang.Object newValue)
                             throws java.lang.IllegalArgumentException
        Description copied from class: Variable
        Sets the underlying value of this variable from given object. If a conversion happens to be needed and fails, then an IllegalArgumentException will be thrown.
        Overrides:
        setUntypedValue in class StringVariable
        Parameters:
        newValue - the value to set: either of the type needed by this variable type, or one of convertible types.
        Throws:
        java.lang.IllegalArgumentException - if conversion of the value fails.