Share via


Transformer.SetParameter(String, Object) Method

Definition

Add a parameter for the transformation.

[Android.Runtime.Register("setParameter", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetParameter_Ljava_lang_String_Ljava_lang_Object_Handler")]
public abstract void SetParameter (string? name, Java.Lang.Object? value);
[<Android.Runtime.Register("setParameter", "(Ljava/lang/String;Ljava/lang/Object;)V", "GetSetParameter_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member SetParameter : string * Java.Lang.Object -> unit

Parameters

name
String

The name of the parameter, which may begin with a namespace URI in curly braces ({}).

value
Object

The value object. This can be any valid Java object. It is up to the processor to provide the proper object coercion or to simply pass the object on for use in an extension.

Attributes

Exceptions

If value is null.

Remarks

Add a parameter for the transformation.

Pass a qualified name as a two-part string, the namespace URI enclosed in curly braces ({}), followed by the local name. If the name has a null URL, the String only contain the local name. An application can safely check for a non-null URI by testing to see if the first character of the name is a '{' character.

For example, if a URI and local name were obtained from an element defined with &lt;xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/&gt;, then the qualified name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that no prefix is used.

Java documentation for javax.xml.transform.Transformer.setParameter(java.lang.String, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to