All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.xml.XmlConvert Maven / Gradle / Ivy

Go to download

A set of Java classes to use .NET from any JVM enabled language (Java, Kotlin, Scala and others)

There is a newer version: 1.15.0.0
Show newest version
/*
 *  MIT License
 *
 *  Copyright (c) 2024 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector v. 1.14.0.0
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.xml;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.SByte;
import system.Single;
import system.DateTime;
import system.xml.XmlDateTimeSerializationMode;
import system.DateTimeOffset;
import system.Decimal;
import system.Guid;
import system.TimeSpan;
import system.UInt16;
import system.UInt32;
import system.UInt64;


/**
 * The base .NET class managing System.Xml.XmlConvert, System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Xml.XmlConvert *

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.14.0.0 */ public class XmlConvert extends NetObject { /** * Fully assembly qualified name: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 */ public static final String assemblyFullName = "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; /** * Assembly name: System.Xml */ public static final String assemblyShortName = "System.Xml"; /** * Qualified class name: System.Xml.XmlConvert */ public static final String className = "System.Xml.XmlConvert"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public XmlConvert(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link XmlConvert}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link XmlConvert} instance * @throws java.lang.Throwable in case of error during cast operation */ public static XmlConvert cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new XmlConvert(from.getJCOInstance()); } // Constructors section public XmlConvert() throws Throwable { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public static boolean IsNCNameChar(char ch) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsNCNameChar", ch); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean IsPublicIdChar(char ch) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsPublicIdChar", ch); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean IsStartNCNameChar(char ch) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsStartNCNameChar", ch); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean IsWhitespaceChar(char ch) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsWhitespaceChar", ch); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean IsXmlChar(char ch) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsXmlChar", ch); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean IsXmlSurrogatePair(char lowChar, char highChar) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("IsXmlSurrogatePair", lowChar, highChar); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean ToBoolean(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("ToBoolean", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static byte ToByte(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (byte)classType.Invoke("ToByte", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static char ToChar(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (char)classType.Invoke("ToChar", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double ToDouble(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NullReferenceException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("ToDouble", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static short ToInt16(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (short)classType.Invoke("ToInt16", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static int ToInt32(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (int)classType.Invoke("ToInt32", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static long ToInt64(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (long)classType.Invoke("ToInt64", s); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static SByte ToSByte(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToSByte = (JCObject)classType.Invoke("ToSByte", s); return new SByte(objToSByte); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Single ToSingle(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NullReferenceException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToSingle = (JCObject)classType.Invoke("ToSingle", s); return new Single(objToSingle); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTime ToDateTime(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTime = (JCObject)classType.Invoke("ToDateTime", s); return new DateTime(objToDateTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTime ToDateTime(java.lang.String s, java.lang.String format) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.globalization.CultureNotFoundException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTime = (JCObject)classType.Invoke("ToDateTime", s, format); return new DateTime(objToDateTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTime ToDateTime(java.lang.String s, java.lang.String[] formats) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTime = (JCObject)classType.Invoke("ToDateTime", s, formats); return new DateTime(objToDateTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTime ToDateTime(java.lang.String dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTime = (JCObject)classType.Invoke("ToDateTime", dupParam0, dupParam1.getJCRefOut()); return new DateTime(objToDateTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTime ToDateTime(java.lang.String s, XmlDateTimeSerializationMode dateTimeOption) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.InvalidTimeZoneException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTime = (JCObject)classType.Invoke("ToDateTime", s, dateTimeOption == null ? null : dateTimeOption.getJCOInstance()); return new DateTime(objToDateTime); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeOffset ToDateTimeOffset(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.FormatException, system.InvalidTimeZoneException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTimeOffset = (JCObject)classType.Invoke("ToDateTimeOffset", s); return new DateTimeOffset(objToDateTimeOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeOffset ToDateTimeOffset(java.lang.String s, java.lang.String format) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.globalization.CultureNotFoundException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTimeOffset = (JCObject)classType.Invoke("ToDateTimeOffset", s, format); return new DateTimeOffset(objToDateTimeOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeOffset ToDateTimeOffset(java.lang.String s, java.lang.String[] formats) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTimeOffset = (JCObject)classType.Invoke("ToDateTimeOffset", s, formats); return new DateTimeOffset(objToDateTimeOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeOffset ToDateTimeOffset(java.lang.String dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDateTimeOffset = (JCObject)classType.Invoke("ToDateTimeOffset", dupParam0, dupParam1.getJCRefOut()); return new DateTimeOffset(objToDateTimeOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Decimal ToDecimal(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToDecimal = (JCObject)classType.Invoke("ToDecimal", s); return new Decimal(objToDecimal); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static Guid ToGuid(java.lang.String s) throws Throwable, system.ArgumentNullException, system.FormatException, system.globalization.CultureNotFoundException, system.ArgumentException, system.NotSupportedException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToGuid = (JCObject)classType.Invoke("ToGuid", s); return new Guid(objToGuid); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String DecodeName(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.OutOfMemoryException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.NullReferenceException, system.collections.generic.KeyNotFoundException, system.NotSupportedException, system.RankException, system.security.SecurityException, system.NotImplementedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("DecodeName", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String EncodeLocalName(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.OutOfMemoryException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.NullReferenceException, system.ObjectDisposedException, system.RankException, system.NotSupportedException, system.security.SecurityException, system.NotImplementedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("EncodeLocalName", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String EncodeName(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.OutOfMemoryException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.NullReferenceException, system.ObjectDisposedException, system.RankException, system.NotSupportedException, system.security.SecurityException, system.NotImplementedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("EncodeName", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String EncodeNmToken(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.OutOfMemoryException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.NullReferenceException, system.ObjectDisposedException, system.RankException, system.NotSupportedException, system.security.SecurityException, system.NotImplementedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("EncodeNmToken", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(boolean value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(byte value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(char value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(double value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(short value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(int value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(long value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(SByte value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(Single value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(DateTime value) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException, system.FormatException, system.globalization.CultureNotFoundException, system.OutOfMemoryException, system.NullReferenceException, system.ArgumentException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(DateTime value, java.lang.String format) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.TypeInitializationException, system.IndexOutOfRangeException, system.ArgumentException, system.OverflowException, system.globalization.CultureNotFoundException, system.OutOfMemoryException, system.NullReferenceException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance(), format); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.OverflowException, system.ArgumentNullException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance(), dateTimeOption == null ? null : dateTimeOption.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(DateTimeOffset value) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(DateTimeOffset value, java.lang.String format) throws Throwable, system.ArgumentNullException, system.FormatException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentException, system.TypeInitializationException, system.IndexOutOfRangeException, system.OverflowException, system.globalization.CultureNotFoundException, system.OutOfMemoryException, system.NullReferenceException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance(), format); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(Decimal value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(Guid value) throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(TimeSpan value) throws Throwable, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(UInt16 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(UInt32 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String ToString(UInt64 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("ToString", value == null ? null : value.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyName(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyName", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyNCName(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.IndexOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyNCName", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyNMTOKEN(java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyNMTOKEN", name); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyPublicId(java.lang.String publicId) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.FormatException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyPublicId", publicId); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyTOKEN(java.lang.String token) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.FormatException, system.xml.XmlException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyTOKEN", token); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyWhitespace(java.lang.String content) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.xml.XmlException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyWhitespace", content); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String VerifyXmlChars(java.lang.String content) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("VerifyXmlChars", content); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static TimeSpan ToTimeSpan(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToTimeSpan = (JCObject)classType.Invoke("ToTimeSpan", s); return new TimeSpan(objToTimeSpan); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt16 ToUInt16(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToUInt16 = (JCObject)classType.Invoke("ToUInt16", s); return new UInt16(objToUInt16); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt32 ToUInt32(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToUInt32 = (JCObject)classType.Invoke("ToUInt32", s); return new UInt32(objToUInt32); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static UInt64 ToUInt64(java.lang.String s) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.FormatException, system.OverflowException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objToUInt64 = (JCObject)classType.Invoke("ToUInt64", s); return new UInt64(objToUInt64); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy