// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "org-xml-sax-helpers-NamespaceSupport"))]
__jni_bindgen! {
/// public class [NamespaceSupport](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html)
///
/// Required feature: "org-xml-sax-helpers-NamespaceSupport"
public class NamespaceSupport ("org/xml/sax/helpers/NamespaceSupport") extends crate::java::lang::Object {
/// [NamespaceSupport](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#NamespaceSupport())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::xml::sax::helpers::NamespaceSupport>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [reset](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#reset())
pub fn reset<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "reset", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "reset\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [pushContext](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#pushContext())
pub fn pushContext<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "pushContext", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "pushContext\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [popContext](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#popContext())
pub fn popContext<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "popContext", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "popContext\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [declarePrefix](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#declarePrefix(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn declarePrefix<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "declarePrefix", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "declarePrefix\0", "(Ljava/lang/String;Ljava/lang/String;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [processName](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#processName(java.lang.String,%20java.lang.String%5B%5D,%20boolean))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn processName<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "processName", .descriptor == "(Ljava/lang/String;[Ljava/lang/String;Z)[Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "processName\0", "(Ljava/lang/String;[Ljava/lang/String;Z)[Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getURI](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#getURI(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getURI<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "getURI", .descriptor == "(Ljava/lang/String;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "getURI\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getPrefixes](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#getPrefixes())
///
/// Required features: "java-util-Enumeration"
#[cfg(any(feature = "all", all(feature = "java-util-Enumeration")))]
pub fn getPrefixes<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Enumeration>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "getPrefixes", .descriptor == "()Ljava/util/Enumeration;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "getPrefixes\0", "()Ljava/util/Enumeration;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getPrefix](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#getPrefix(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getPrefix<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "getPrefix", .descriptor == "(Ljava/lang/String;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "getPrefix\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getPrefixes](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#getPrefixes(java.lang.String))
///
/// Required features: "java-lang-String", "java-util-Enumeration"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Enumeration")))]
pub fn getPrefixes_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Enumeration>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "getPrefixes", .descriptor == "(Ljava/lang/String;)Ljava/util/Enumeration;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "getPrefixes\0", "(Ljava/lang/String;)Ljava/util/Enumeration;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDeclaredPrefixes](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#getDeclaredPrefixes())
///
/// Required features: "java-util-Enumeration"
#[cfg(any(feature = "all", all(feature = "java-util-Enumeration")))]
pub fn getDeclaredPrefixes<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Enumeration>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "getDeclaredPrefixes", .descriptor == "()Ljava/util/Enumeration;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "getDeclaredPrefixes\0", "()Ljava/util/Enumeration;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setNamespaceDeclUris](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#setNamespaceDeclUris(boolean))
pub fn setNamespaceDeclUris<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "setNamespaceDeclUris", .descriptor == "(Z)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "setNamespaceDeclUris\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isNamespaceDeclUris](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#isNamespaceDeclUris())
pub fn isNamespaceDeclUris<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "org/xml/sax/helpers/NamespaceSupport", java.flags == PUBLIC, .name == "isNamespaceDeclUris", .descriptor == "()Z"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("org/xml/sax/helpers/NamespaceSupport\0", "isNamespaceDeclUris\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [NSDECL](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#NSDECL)
pub const NSDECL : &'static str = "http://www.w3.org/xmlns/2000/";
/// public static final [XMLNS](https://developer.android.com/reference/org/xml/sax/helpers/NamespaceSupport.html#XMLNS)
pub const XMLNS : &'static str = "http://www.w3.org/XML/1998/namespace";
}
}