Class LiveObject

    • Constructor Detail

      • LiveObject

        public LiveObject​(RhinoScriptHandler handler,
                          Obj xfaObject)
        Instantiates a LiveObject object. The lone constructor used by this package to create instances of this class.
        Parameters:
        handler - a Rhino script handler.
        xfaObject - the XFA object that is peered to this object.
    • Method Detail

      • jsConstructor

        public void jsConstructor​(java.lang.Object handler,
                                  java.lang.Object xfaObject)
        Defines the JavaScript constructor to Rhino.

        This method is required by the Scriptable interface and must mirror the signature of the class constructor.

        Parameters:
        handler - a Rhino script handler.
        xfaObject - the XFA object that is peered to this object.
      • get

        public java.lang.Object get​(java.lang.String name,
                                    Scriptable start)
        Gets the value of the named property of this object.
        Specified by:
        get in interface Scriptable
        Overrides:
        get in class ScriptableObject
        Parameters:
        name - the name of the property.
        start - the object in which the lookup began.
        Returns:
        the value of the property, or NOT_FOUND if the property is not a property of this object's peered XFA object.
        Throws:
        EvaluatorException - whenever an ExFull was thrown while getting the XFA property.
        See Also:
        Context.getUndefinedValue()