Package system
Class DateOnly
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.DateOnly
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class DateOnly extends ValueType
The base .NET class managing System.DateOnly, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.DateOnlystatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateOnlyAddDays(int value)DateOnlyAddMonths(int value)DateOnlyAddYears(int value)static DateOnlycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDateOnly, a cast assert is made to check if types are compatible.intCompareTo(NetObject value)intCompareTo(DateOnly value)voidDeconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day)booleanEquals(DateOnly value)static DateOnlyFromDateTime(DateTime dateTime)static DateOnlyFromDayNumber(int dayNumber)intgetDay()intgetDayNumber()DayOfWeekgetDayOfWeek()intgetDayOfYear()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic DateOnlygetMaxValue()static DateOnlygetMinValue()intgetMonth()intgetYear()static DateOnlyParse(java.lang.String s)static DateOnlyParse(java.lang.String s, IFormatProvider provider)static DateOnlyParse(java.lang.String s, IFormatProvider provider, DateTimeStyles style)static DateOnlyParseExact(java.lang.String s, java.lang.String format)static DateOnlyParseExact(java.lang.String s, java.lang.String[] formats)static DateOnlyParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style)static DateOnlyParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style)static DateOnlyParseExact(java.lang.String dupParam0, JCORefOut dupParam1)static DateOnlyParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3)voidsetJCOInstance(JCObject instance)DateTimeToDateTime(TimeOnly time)DateTimeToDateTime(TimeOnly time, DateTimeKind kind)java.lang.StringToLongDateString()java.lang.StringToShortDateString()java.lang.StringToString(java.lang.String format)java.lang.StringToString(java.lang.String format, IFormatProvider provider)java.lang.StringToString(IFormatProvider provider)static booleanTryParse(java.lang.String s, JCORefOut<DateOnly> result)static booleanTryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateOnly> result)static booleanTryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result)static booleanTryParseExact(java.lang.String s, java.lang.String[] formats, JCORefOut<DateOnly> result)static booleanTryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result)static booleanTryParseExact(java.lang.String s, java.lang.String format, JCORefOut<DateOnly> result)static booleanTryParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.DateOnly- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateOnly
public DateOnly(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
DateOnly
public DateOnly() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DateOnly
public DateOnly(int year, int month, int day, Calendar calendar) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeException
-
DateOnly
public DateOnly(int year, int month, int day) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DateOnly cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDateOnly, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DateOnlyinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Equals
public boolean Equals(DateOnly value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryParse
public static boolean TryParse(java.lang.String s, JCORefOut<DateOnly> result) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException, NotSupportedException
-
TryParse
public static boolean TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateOnly> result) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException, NotSupportedException
-
TryParse
public static boolean TryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException, NotSupportedException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String format, JCORefOut<DateOnly> result) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, RankException, ArgumentException, ArrayTypeMismatchException, TypeInitializationException, OverflowException, InvalidOperationException, ArgumentNullException, FormatException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, RankException, ArrayTypeMismatchException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException, CultureNotFoundException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionRankExceptionArrayTypeMismatchExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatExceptionCultureNotFoundException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String[] formats, JCORefOut<DateOnly> result) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, OverflowException, ArgumentException, InvalidOperationException, ArgumentNullException, FormatException, ArrayTypeMismatchException
-
TryParseExact
public static boolean TryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, OverflowException, InvalidOperationException, ArgumentNullException, OutOfMemoryException, FormatException, CultureNotFoundException, ArrayTypeMismatchException, ArgumentException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionNotSupportedExceptionOverflowExceptionInvalidOperationExceptionArgumentNullExceptionOutOfMemoryExceptionFormatExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionArgumentException
-
CompareTo
public int CompareTo(DateOnly value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
AddDays
public DateOnly AddDays(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
AddMonths
public DateOnly AddMonths(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
AddYears
public DateOnly AddYears(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
FromDateTime
public static DateOnly FromDateTime(DateTime dateTime) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromDayNumber
public static DateOnly FromDayNumber(int dayNumber) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Parse
public static DateOnly Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, OverflowException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionOverflowExceptionFormatException
-
Parse
public static DateOnly Parse(java.lang.String s, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, OverflowException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionOverflowExceptionFormatException
-
Parse
public static DateOnly Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, OverflowException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionOverflowExceptionFormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, TypeInitializationException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String s, java.lang.String format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, TypeInitializationException, OverflowException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionTypeInitializationExceptionOverflowExceptionFormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionFormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String s, java.lang.String[] formats) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
-
ParseExact
public static DateOnly ParseExact(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OverflowException, FormatException
-
ToDateTime
public DateTime ToDateTime(TimeOnly time, DateTimeKind kind) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToDateTime
public DateTime ToDateTime(TimeOnly time) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToLongDateString
public java.lang.String ToLongDateString() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, InvalidOperationException, CultureNotFoundException, OverflowException
-
ToShortDateString
public java.lang.String ToShortDateString() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ToString
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, OutOfMemoryException, FormatException, CultureNotFoundException, OverflowException
-
ToString
public java.lang.String ToString(java.lang.String format, IFormatProvider provider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OutOfMemoryException, SecurityException, OverflowException, FormatException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionSecurityExceptionOverflowExceptionFormatExceptionCultureNotFoundException
-
ToString
public java.lang.String ToString(java.lang.String format) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, OutOfMemoryException, FormatException, CultureNotFoundException, OverflowException
-
Deconstruct
public void Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDay
public int getDay() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDayNumber
public int getDayNumber() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDayOfYear
public int getDayOfYear() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMonth
public int getMonth() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getYear
public int getYear() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMaxValue
public static DateOnly getMaxValue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMinValue
public static DateOnly getMinValue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDayOfWeek
public DayOfWeek getDayOfWeek() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-