/// <summary> /// Set a configuration property /// </summary> /// <remarks> /// This method provides the ability to set named properties of the configuration. /// The property names are set as strings, whose values can be found in the Java /// class <c>net.sf.saxon.FeatureKeys</c>. The property values are set as objects /// whose type depends on the property. /// </remarks> /// <param name="name">The property name</param> /// <param name="value">The property value</param> public void SetProperty(String name, Object value) { if (value is bool) { value = ((bool)value ? JBoolean.TRUE : JBoolean.FALSE); } config.setConfigurationProperty(name, value); }
/// <summary> /// Set a configuration property /// </summary> /// <remarks> /// <para>This method provides the ability to set named properties of the configuration. /// The property names are set as strings, whose values can be found in the Java /// class <c>net.sf.saxon.FeatureKeys</c>. The property values are always strings. /// Properties whose values are other types are not available via this interface: /// however all properties have an effective equivalent whose value is a string. /// Note that on/off properties are set using the strings "true" and "false".</para> /// <para><i>Method added in Saxon 9.1</i></para> /// </remarks> /// <param name="name">The property name</param> /// <param name="value">The property value</param> public void SetProperty(String name, String value) { config.setConfigurationProperty(name, value); }