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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.DateOnlystatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateOnly
AddDays(int value)
DateOnly
AddMonths(int value)
DateOnly
AddYears(int value)
static DateOnly
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDateOnly
, a cast assert is made to check if types are compatible.int
CompareTo(NetObject value)
int
CompareTo(DateOnly value)
void
Deconstruct(JCORefOut<java.util.concurrent.atomic.AtomicInteger> year, JCORefOut<java.util.concurrent.atomic.AtomicInteger> month, JCORefOut<java.util.concurrent.atomic.AtomicInteger> day)
boolean
Equals(DateOnly value)
static DateOnly
FromDateTime(DateTime dateTime)
static DateOnly
FromDayNumber(int dayNumber)
int
getDay()
int
getDayNumber()
DayOfWeek
getDayOfWeek()
int
getDayOfYear()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic DateOnly
getMaxValue()
static DateOnly
getMinValue()
int
getMonth()
int
getYear()
static DateOnly
Parse(java.lang.String s)
static DateOnly
Parse(java.lang.String s, IFormatProvider provider)
static DateOnly
Parse(java.lang.String s, IFormatProvider provider, DateTimeStyles style)
static DateOnly
ParseExact(java.lang.String s, java.lang.String format)
static DateOnly
ParseExact(java.lang.String s, java.lang.String[] formats)
static DateOnly
ParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style)
static DateOnly
ParseExact(java.lang.String s, java.lang.String format, IFormatProvider provider, DateTimeStyles style)
static DateOnly
ParseExact(java.lang.String dupParam0, JCORefOut dupParam1)
static DateOnly
ParseExact(java.lang.String dupParam0, JCORefOut dupParam1, IFormatProvider dupParam2, DateTimeStyles dupParam3)
void
setJCOInstance(JCObject instance)
DateTime
ToDateTime(TimeOnly time)
DateTime
ToDateTime(TimeOnly time, DateTimeKind kind)
java.lang.String
ToLongDateString()
java.lang.String
ToShortDateString()
java.lang.String
ToString(java.lang.String format)
java.lang.String
ToString(java.lang.String format, IFormatProvider provider)
java.lang.String
ToString(IFormatProvider provider)
static boolean
TryParse(java.lang.String s, JCORefOut<DateOnly> result)
static boolean
TryParse(java.lang.String s, IFormatProvider provider, JCORefOut<DateOnly> result)
static boolean
TryParse(java.lang.String s, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result)
static boolean
TryParseExact(java.lang.String s, java.lang.String[] formats, JCORefOut<DateOnly> result)
static boolean
TryParseExact(java.lang.String s, java.lang.String[] formats, IFormatProvider provider, DateTimeStyles style, JCORefOut<DateOnly> result)
static boolean
TryParseExact(java.lang.String s, java.lang.String format, JCORefOut<DateOnly> result)
static boolean
TryParseExact(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.Throwable
Internal 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.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DateOnly cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDateOnly
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DateOnly
instance- 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.Throwable
NotSupportedException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentNullException
RankException
ArrayTypeMismatchException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
CultureNotFoundException
-
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.Throwable
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
OverflowException
InvalidOperationException
ArgumentNullException
OutOfMemoryException
FormatException
CultureNotFoundException
ArrayTypeMismatchException
ArgumentException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
OverflowException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
IndexOutOfRangeException
OverflowException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
IndexOutOfRangeException
OverflowException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
TypeInitializationException
OverflowException
OutOfMemoryException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
TypeInitializationException
OverflowException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
OverflowException
OutOfMemoryException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ArgumentNullException
ObjectDisposedException
RankException
IndexOutOfRangeException
OverflowException
OutOfMemoryException
FormatException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
OutOfMemoryException
SecurityException
OverflowException
FormatException
CultureNotFoundException
-
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
-
-