DatatypeFactory Class

Definition

Factory that creates new javax.xml.datatypeObjects that map XML to/from Java Objects.

[Android.Runtime.Register("javax/xml/datatype/DatatypeFactory", DoNotGenerateAcw=true)]
public abstract class DatatypeFactory : Java.Lang.Object
[<Android.Runtime.Register("javax/xml/datatype/DatatypeFactory", DoNotGenerateAcw=true)>]
type DatatypeFactory = class
    inherit Object
Inheritance
DatatypeFactory
Attributes

Remarks

Factory that creates new javax.xml.datatypeObjects that map XML to/from Java Objects.

<p id="DatatypeFactory.newInstance">#newInstance() is used to create a new DatatypeFactory. The following implementation resolution mechanisms are used in the following order:</p> <ol> <li> If the system property specified by #DATATYPEFACTORY_PROPERTY, "javax.xml.datatype.DatatypeFactory", exists, a class with the name of the property's value is instantiated. Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException. </li> <li> If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a java.util.PropertiesObject. The PropertiesObject is then queried for the property as documented in the prior step and processed as documented in the prior step. </li> <li> The services resolution mechanism is used, e.g. META-INF/services/java.xml.datatype.DatatypeFactory. Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException. </li> <li> The final mechanism is to attempt to instantiate the Class specified by #DATATYPEFACTORY_IMPLEMENTATION_CLASS, "javax.xml.datatype.DatatypeFactoryImpl". Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException. </li> </ol>

Note that you must supply your own implementation (such as Xerces); Android does not ship with a default implementation.

Added in 1.5.

Java documentation for javax.xml.datatype.DatatypeFactory.

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.

Constructors

DatatypeFactory()

Protected constructor to prevent instantiation outside of package.

DatatypeFactory(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

DatatypefactoryProperty

Default property name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
DatatypefactoryImplementationClass

Default implementation class name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
NewDuration(Boolean, BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, BigDecimal)

Obtain a new instance of a Duration specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.

NewDuration(Boolean, Int32, Int32, Int32, Int32, Int32, Int32)

Obtain a new instance of a Duration specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.

NewDuration(Int64)

Obtain a new instance of a Duration specifying the Duration as milliseconds.

NewDuration(String)

Obtain a new instance of a Duration specifying the Duration as its string representation, "PnYnMnDTnHnMnS", as defined in XML Schema 1.

NewDurationDayTime(Boolean, BigInteger, BigInteger, BigInteger, BigInteger)

Create a Duration of type xdt:dayTimeDuration using the specified day, hour, minute and second as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.

NewDurationDayTime(Boolean, Int32, Int32, Int32, Int32)

Create a Duration of type xdt:dayTimeDuration using the specified day, hour, minute and second as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.

NewDurationDayTime(Int64)

Create a Duration of type xdt:dayTimeDuration using the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.

NewDurationDayTime(String)

Create a Duration of type xdt:dayTimeDuration by parsing its String representation, "<em>PnDTnHnMnS</em>", XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.

NewDurationYearMonth(Boolean, BigInteger, BigInteger)

Create a Duration of type xdt:yearMonthDuration using the specified year and month as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.

NewDurationYearMonth(Boolean, Int32, Int32)

Create a Duration of type xdt:yearMonthDuration using the specified year and month as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.

NewDurationYearMonth(Int64)

Create a Duration of type xdt:yearMonthDuration using the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.

NewDurationYearMonth(String)

Create a Duration of type xdt:yearMonthDuration by parsing its String representation, "<em>PnYnM</em>", XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.

NewInstance()

Obtain a new instance of a DatatypeFactory.

NewInstance(String, ClassLoader)

Returns an instance of the named implementation of DatatypeFactory.

NewXMLGregorianCalendar()

Create a new instance of an XMLGregorianCalendar.

NewXMLGregorianCalendar(BigInteger, Int32, Int32, Int32, Int32, Int32, BigDecimal, Int32)

Constructor allowing for complete value spaces allowed by W3C XML Schema 1.

NewXMLGregorianCalendar(GregorianCalendar)

Create an XMLGregorianCalendar from a GregorianCalendar.

NewXMLGregorianCalendar(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructor of value spaces that a java.util.GregorianCalendar instance would need to convert to an XMLGregorianCalendar instance.

NewXMLGregorianCalendar(String)

Create a new XMLGregorianCalendar by parsing the String as a lexical representation.

NewXMLGregorianCalendarDate(Int32, Int32, Int32, Int32)

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

NewXMLGregorianCalendarTime(Int32, Int32, Int32, BigDecimal, Int32)

Create a Java instance of XML Schema builtin datatype time.

NewXMLGregorianCalendarTime(Int32, Int32, Int32, Int32)

Create a Java instance of XML Schema builtin datatype time.

NewXMLGregorianCalendarTime(Int32, Int32, Int32, Int32, Int32)

Create a Java instance of XML Schema builtin datatype time.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to