DatatypeFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory that creates new javax.xml.datatype
Object
s that map XML to/from Java Object
s.
[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
- Attributes
Remarks
Factory that creates new javax.xml.datatype
Object
s that map XML to/from Java Object
s.
<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.Properties
Object
. The Properties
Object
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 |
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 |
NewDuration(Boolean, Int32, Int32, Int32, Int32, Int32, Int32) |
Obtain a new instance of a |
NewDuration(Int64) |
Obtain a new instance of a |
NewDuration(String) |
Obtain a new instance of a |
NewDurationDayTime(Boolean, BigInteger, BigInteger, BigInteger, BigInteger) |
Create a |
NewDurationDayTime(Boolean, Int32, Int32, Int32, Int32) |
Create a |
NewDurationDayTime(Int64) |
Create a |
NewDurationDayTime(String) |
Create a |
NewDurationYearMonth(Boolean, BigInteger, BigInteger) |
Create a |
NewDurationYearMonth(Boolean, Int32, Int32) |
Create a |
NewDurationYearMonth(Int64) |
Create a |
NewDurationYearMonth(String) |
Create a |
NewInstance() |
Obtain a new instance of a |
NewInstance(String, ClassLoader) |
Returns an instance of the named implementation of |
NewXMLGregorianCalendar() |
Create a new instance of an |
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 |
NewXMLGregorianCalendar(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Constructor of value spaces that a
|
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 |
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 |
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) |