Freigeben über


Duration.XMLSchemaType Property

Definition

Return the name of the XML Schema date/time type that this instance maps to.

public virtual Javax.Xml.Namespace.QName? XMLSchemaType { [Android.Runtime.Register("getXMLSchemaType", "()Ljavax/xml/namespace/QName;", "GetGetXMLSchemaTypeHandler")] get; }
[<get: Android.Runtime.Register("getXMLSchemaType", "()Ljavax/xml/namespace/QName;", "GetGetXMLSchemaTypeHandler")>]
member this.XMLSchemaType : Javax.Xml.Namespace.QName

Property Value

one of the following constants: DatatypeConstants#DURATION, DatatypeConstants#DURATION_DAYTIME or DatatypeConstants#DURATION_YEARMONTH.

Attributes

Exceptions

If the combination of set fields does not match one of the XML Schema date/time datatypes.

Remarks

Return the name of the XML Schema date/time type that this instance maps to. Type is computed based on fields that are set, i.e. #isSet(DatatypeConstants.Field field) == true.

<table border="2" rules="all" cellpadding="2"> <thead> <tr> <th align="center" colspan="7"> Required fields for XML Schema 1.0 Date/Time Datatypes.<br/> (timezone is optional for all date/time datatypes)</th> </tr> </thead> <tbody> <tr> <td>Datatype</td> <td>year</td> <td>month</td> <td>day</td> <td>hour</td> <td>minute</td> <td>second</td> </tr> <tr> <td>DatatypeConstants#DURATION</td> <td>X</td> <td>X</td> <td>X</td> <td>X</td> <td>X</td> <td>X</td> </tr> <tr> <td>DatatypeConstants#DURATION_DAYTIME</td> <td></td> <td></td> <td>X</td> <td>X</td> <td>X</td> <td>X</td> </tr> <tr> <td>DatatypeConstants#DURATION_YEARMONTH</td> <td>X</td> <td>X</td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table>

Java documentation for javax.xml.datatype.Duration.getXMLSchemaType().

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