DatatypeFactory.NewXMLGregorianCalendarDate Method

Definition

Create a Java representation of XML Schema builtin datatype date or g*.

[Android.Runtime.Register("newXMLGregorianCalendarDate", "(IIII)Ljavax/xml/datatype/XMLGregorianCalendar;", "GetNewXMLGregorianCalendarDate_IIIIHandler")]
public virtual Javax.Xml.Datatype.XMLGregorianCalendar? NewXMLGregorianCalendarDate (int year, int month, int day, int timezone);
[<Android.Runtime.Register("newXMLGregorianCalendarDate", "(IIII)Ljavax/xml/datatype/XMLGregorianCalendar;", "GetNewXMLGregorianCalendarDate_IIIIHandler")>]
abstract member NewXMLGregorianCalendarDate : int * int * int * int -> Javax.Xml.Datatype.XMLGregorianCalendar
override this.NewXMLGregorianCalendarDate : int * int * int * int -> Javax.Xml.Datatype.XMLGregorianCalendar

Parameters

year
Int32

of XMLGregorianCalendar to be created.

month
Int32

of XMLGregorianCalendar to be created.

day
Int32

of XMLGregorianCalendar to be created.

timezone
Int32

offset in minutes. DatatypeConstants#FIELD_UNDEFINED indicates optional field is not set.

Returns

XMLGregorianCalendar created from parameter values.

Attributes

Exceptions

If any individual parameter's value is outside the maximum value constraint for the field as determined by the Date/Time Data Mapping table in XMLGregorianCalendar or if the composite values constitute an invalid XMLGregorianCalendar instance as determined by IsValid.

Remarks

Create a Java representation of XML Schema builtin datatype date or g*.

For example, an instance of gYear can be created invoking this factory with month and day parameters set to DatatypeConstants#FIELD_UNDEFINED.

A DatatypeConstants#FIELD_UNDEFINED value indicates that field is not set.

Java documentation for javax.xml.datatype.DatatypeFactory.newXMLGregorianCalendarDate(int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also