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

system.globalization.DateTimeFormatInfo Maven / Gradle / Ivy

/*
 *  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.15.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.globalization;

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

// Import section
import system.globalization.DateTimeFormatInfo;
import system.IFormatProvider;
import system.IFormatProviderImplementation;
import system.DayOfWeek;
import system.globalization.Calendar;
import system.globalization.CalendarWeekRule;


/**
 * The base .NET class managing System.Globalization.DateTimeFormatInfo, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e.
 * 

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

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.15.0.0 */ public class DateTimeFormatInfo extends NetObject { /** * Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e */ public static final String assemblyFullName = "System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"; /** * Assembly name: System.Private.CoreLib */ public static final String assemblyShortName = "System.Private.CoreLib"; /** * Qualified class name: System.Globalization.DateTimeFormatInfo */ public static final String className = "System.Globalization.DateTimeFormatInfo"; 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 DateTimeFormatInfo(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 DateTimeFormatInfo}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link DateTimeFormatInfo} instance * @throws java.lang.Throwable in case of error during cast operation */ public static DateTimeFormatInfo cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new DateTimeFormatInfo(from.getJCOInstance()); } // Constructors section public DateTimeFormatInfo() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.IndexOutOfRangeException, system.FormatException, system.OutOfMemoryException { 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 int GetEra(java.lang.String eraName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.IndexOutOfRangeException, system.NullReferenceException, system.OutOfMemoryException, system.globalization.CultureNotFoundException, system.runtime.interopservices.ExternalException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (int)classInstance.Invoke("GetEra", eraName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeFormatInfo GetInstance(IFormatProvider provider) throws Throwable, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.NullReferenceException, system.NotSupportedException, system.ArgumentException, system.ArgumentOutOfRangeException, system.RankException, system.IndexOutOfRangeException, system.ArrayTypeMismatchException, system.TypeInitializationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objGetInstance = (JCObject)classType.Invoke("GetInstance", provider == null ? null : provider.getJCOInstance()); return new DateTimeFormatInfo(objGetInstance); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeFormatInfo ReadOnly(DateTimeFormatInfo dtfi) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objReadOnly = (JCObject)classType.Invoke("ReadOnly", dtfi == null ? null : dtfi.getJCOInstance()); return new DateTimeFormatInfo(objReadOnly); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NetObject Clone() throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objClone = (JCObject)classInstance.Invoke("Clone"); return new NetObject(objClone); } catch (JCNativeException jcne) { throw translateException(jcne); } } public NetObject GetFormat(NetType formatType) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject objGetFormat = (JCObject)classInstance.Invoke("GetFormat", formatType == null ? null : formatType.getJCOInstance()); return new NetObject(objGetFormat); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetAbbreviatedDayName(DayOfWeek dayofweek) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentException, system.ArgumentNullException, system.InvalidOperationException, system.NotSupportedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetAbbreviatedDayName", dayofweek == null ? null : dayofweek.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetAbbreviatedEraName(int era) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException, system.ArgumentNullException, system.NotSupportedException, system.NullReferenceException, system.OutOfMemoryException, system.globalization.CultureNotFoundException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetAbbreviatedEraName", era); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetAbbreviatedMonthName(int month) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentException, system.ArgumentNullException, system.InvalidOperationException, system.NotSupportedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetAbbreviatedMonthName", month); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetDayName(DayOfWeek dayofweek) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentException, system.ArgumentNullException, system.InvalidOperationException, system.NotSupportedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetDayName", dayofweek == null ? null : dayofweek.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetEraName(int era) throws Throwable, system.ArgumentNullException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.ArgumentException, system.NullReferenceException, system.InvalidOperationException, system.OutOfMemoryException, system.globalization.CultureNotFoundException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetEraName", era); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetMonthName(int month) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentException, system.ArgumentNullException, system.InvalidOperationException, system.NotSupportedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetMonthName", month); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String GetShortestDayName(DayOfWeek dayOfWeek) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentException, system.ArgumentNullException, system.InvalidOperationException, system.NotSupportedException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Invoke("GetShortestDayName", dayOfWeek == null ? null : dayOfWeek.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] GetAllDateTimePatterns() throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("GetAllDateTimePatterns"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexGetAllDateTimePatterns = 0; indexGetAllDateTimePatterns < resultingArrayList.size(); indexGetAllDateTimePatterns++ ) { resultingArray[indexGetAllDateTimePatterns] = (java.lang.String)resultingArrayList.get(indexGetAllDateTimePatterns); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] GetAllDateTimePatterns(char format) throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentException, system.InvalidOperationException, system.NotSupportedException, system.IndexOutOfRangeException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Invoke("GetAllDateTimePatterns", format); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexGetAllDateTimePatterns = 0; indexGetAllDateTimePatterns < resultingArrayList.size(); indexGetAllDateTimePatterns++ ) { resultingArray[indexGetAllDateTimePatterns] = (java.lang.String)resultingArrayList.get(indexGetAllDateTimePatterns); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void SetAllDateTimePatterns(java.lang.String[] patterns, char format) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.NullReferenceException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("SetAllDateTimePatterns", patterns, format); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void SetAllDateTimePatterns(JCORefOut dupParam0, char dupParam1) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.NullReferenceException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("SetAllDateTimePatterns", dupParam0.getJCRefOut(), dupParam1); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public boolean getIsReadOnly() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("IsReadOnly"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public DayOfWeek getFirstDayOfWeek() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("FirstDayOfWeek"); return new DayOfWeek(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setFirstDayOfWeek(DayOfWeek FirstDayOfWeek) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("FirstDayOfWeek", FirstDayOfWeek == null ? null : FirstDayOfWeek.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Calendar getCalendar() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Calendar"); return new Calendar(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCalendar(Calendar Calendar) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Calendar", Calendar == null ? null : Calendar.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public CalendarWeekRule getCalendarWeekRule() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("CalendarWeekRule"); return new CalendarWeekRule(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCalendarWeekRule(CalendarWeekRule CalendarWeekRule) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("CalendarWeekRule", CalendarWeekRule == null ? null : CalendarWeekRule.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeFormatInfo getCurrentInfo() throws Throwable, system.ArgumentNullException, system.OutOfMemoryException, system.ArgumentException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.NullReferenceException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.ArrayTypeMismatchException, system.RankException, system.InvalidCastException, system.TypeInitializationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("CurrentInfo"); return new DateTimeFormatInfo(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static DateTimeFormatInfo getInvariantInfo() throws Throwable { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject val = (JCObject)classType.Get("InvariantInfo"); return new DateTimeFormatInfo(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getAMDesignator() throws Throwable, system.OutOfMemoryException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("AMDesignator"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAMDesignator(java.lang.String AMDesignator) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AMDesignator", AMDesignator); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getDateSeparator() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("DateSeparator"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDateSeparator(java.lang.String DateSeparator) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("DateSeparator", DateSeparator); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getFullDateTimePattern() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentException, system.InvalidOperationException, system.NotSupportedException, system.IndexOutOfRangeException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("FullDateTimePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setFullDateTimePattern(java.lang.String FullDateTimePattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("FullDateTimePattern", FullDateTimePattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getLongDatePattern() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("LongDatePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setLongDatePattern(java.lang.String LongDatePattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("LongDatePattern", LongDatePattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getLongTimePattern() throws Throwable, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.ArrayTypeMismatchException, system.ArgumentException, system.OutOfMemoryException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("LongTimePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setLongTimePattern(java.lang.String LongTimePattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("LongTimePattern", LongTimePattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getMonthDayPattern() throws Throwable, system.ArgumentNullException, system.IndexOutOfRangeException, system.RankException, system.ArgumentException, system.ArrayTypeMismatchException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.InvalidOperationException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("MonthDayPattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setMonthDayPattern(java.lang.String MonthDayPattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("MonthDayPattern", MonthDayPattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getNativeCalendarName() throws Throwable, system.ArgumentNullException, system.IndexOutOfRangeException, system.RankException, system.ArgumentException, system.ArrayTypeMismatchException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.InvalidOperationException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("NativeCalendarName"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getPMDesignator() throws Throwable, system.OutOfMemoryException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("PMDesignator"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setPMDesignator(java.lang.String PMDesignator) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("PMDesignator", PMDesignator); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getRFC1123Pattern() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("RFC1123Pattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getShortDatePattern() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("ShortDatePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setShortDatePattern(java.lang.String ShortDatePattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ShortDatePattern", ShortDatePattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getShortTimePattern() throws Throwable, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.ArrayTypeMismatchException, system.ArgumentException, system.OutOfMemoryException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("ShortTimePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setShortTimePattern(java.lang.String ShortTimePattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ShortTimePattern", ShortTimePattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getSortableDateTimePattern() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("SortableDateTimePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getTimeSeparator() throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArrayTypeMismatchException, system.OutOfMemoryException, system.ArgumentNullException, system.IndexOutOfRangeException, system.RankException, system.InvalidCastException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("TimeSeparator"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setTimeSeparator(java.lang.String TimeSeparator) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("TimeSeparator", TimeSeparator); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getUniversalSortableDateTimePattern() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("UniversalSortableDateTimePattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getYearMonthPattern() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("YearMonthPattern"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setYearMonthPattern(java.lang.String YearMonthPattern) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("YearMonthPattern", YearMonthPattern); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getAbbreviatedDayNames() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("AbbreviatedDayNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexAbbreviatedDayNames = 0; indexAbbreviatedDayNames < resultingArrayList.size(); indexAbbreviatedDayNames++ ) { resultingArray[indexAbbreviatedDayNames] = (java.lang.String)resultingArrayList.get(indexAbbreviatedDayNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAbbreviatedDayNames(java.lang.String[] AbbreviatedDayNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AbbreviatedDayNames", AbbreviatedDayNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getAbbreviatedMonthGenitiveNames() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("AbbreviatedMonthGenitiveNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexAbbreviatedMonthGenitiveNames = 0; indexAbbreviatedMonthGenitiveNames < resultingArrayList.size(); indexAbbreviatedMonthGenitiveNames++ ) { resultingArray[indexAbbreviatedMonthGenitiveNames] = (java.lang.String)resultingArrayList.get(indexAbbreviatedMonthGenitiveNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAbbreviatedMonthGenitiveNames(java.lang.String[] AbbreviatedMonthGenitiveNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AbbreviatedMonthGenitiveNames", AbbreviatedMonthGenitiveNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getAbbreviatedMonthNames() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("AbbreviatedMonthNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexAbbreviatedMonthNames = 0; indexAbbreviatedMonthNames < resultingArrayList.size(); indexAbbreviatedMonthNames++ ) { resultingArray[indexAbbreviatedMonthNames] = (java.lang.String)resultingArrayList.get(indexAbbreviatedMonthNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setAbbreviatedMonthNames(java.lang.String[] AbbreviatedMonthNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("AbbreviatedMonthNames", AbbreviatedMonthNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getDayNames() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("DayNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexDayNames = 0; indexDayNames < resultingArrayList.size(); indexDayNames++ ) { resultingArray[indexDayNames] = (java.lang.String)resultingArrayList.get(indexDayNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setDayNames(java.lang.String[] DayNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("DayNames", DayNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getMonthGenitiveNames() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException, system.PlatformNotSupportedException, system.InvalidOperationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("MonthGenitiveNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexMonthGenitiveNames = 0; indexMonthGenitiveNames < resultingArrayList.size(); indexMonthGenitiveNames++ ) { resultingArray[indexMonthGenitiveNames] = (java.lang.String)resultingArrayList.get(indexMonthGenitiveNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setMonthGenitiveNames(java.lang.String[] MonthGenitiveNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("MonthGenitiveNames", MonthGenitiveNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getMonthNames() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("MonthNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexMonthNames = 0; indexMonthNames < resultingArrayList.size(); indexMonthNames++ ) { resultingArray[indexMonthNames] = (java.lang.String)resultingArrayList.get(indexMonthNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setMonthNames(java.lang.String[] MonthNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("MonthNames", MonthNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String[] getShortestDayNames() throws Throwable, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classInstance.Get("ShortestDayNames"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(resultingObject); } java.lang.String[] resultingArray = new java.lang.String[resultingArrayList.size()]; for(int indexShortestDayNames = 0; indexShortestDayNames < resultingArrayList.size(); indexShortestDayNames++ ) { resultingArray[indexShortestDayNames] = (java.lang.String)resultingArrayList.get(indexShortestDayNames); } return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setShortestDayNames(java.lang.String[] ShortestDayNames) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ArrayTypeMismatchException, system.NotSupportedException, system.IndexOutOfRangeException, system.RankException, system.globalization.CultureNotFoundException, system.ObjectDisposedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ShortestDayNames", ShortestDayNames); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy