Freigeben über


SchemaFactory Class

Definition

Factory that creates Schema objects. Entry-point to the validation API.

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

Remarks

Factory that creates Schema objects&#x2E; Entry-point to the validation API.

SchemaFactory is a schema compiler. It reads external representations of schemas and prepares them for validation.

The SchemaFactory class is not thread-safe. In other words, it is the application's responsibility to ensure that at most one thread is using a SchemaFactory object at any given moment. Implementations are encouraged to mark methods as synchronized to protect themselves from broken clients.

SchemaFactory is not re-entrant. While one of the newSchema methods is being invoked, applications may not attempt to recursively invoke the newSchema method, even from the same thread.

<h2>"schemaLanguage">Schema Language</h2>

This spec uses a namespace URI to designate a schema language. The following table shows the values defined by this specification.

To be compliant with the spec, the implementation is only required to support W3C XML Schema 1.0. However, if it chooses to support other schema languages listed here, it must conform to the relevant behaviors described in this spec.

Schema languages not listed here are expected to introduce their own URIs to represent themselves. The SchemaFactory class is capable of locating other implementations for other schema languages at run-time.

Note that because the XML DTD is strongly tied to the parsing process and has a significant effect on the parsing process, it is impossible to define the DTD validation as a process independent from parsing. For this reason, this specification does not define the semantics for the XML DTD. This doesn't prohibit implementers from implementing it in a way they see fit, but <em>users are warned that any DTD validation implemented on this interface necessarily deviate from the XML DTD semantics as defined in the XML 1.0</em>.

<table border="1" cellpadding="2"> <thead> <tr> <th>value</th> <th>language</th> </tr> </thead> <tbody> <tr> <td>javax.xml.XMLConstants#W3C_XML_SCHEMA_NS_URI ("http://www.w3.org/2001/XMLSchema")</td> <td>W3C XML Schema 1.0</td> </tr> <tr> <td>javax.xml.XMLConstants#RELAXNG_NS_URI ("http://relaxng.org/ns/structure/1.0")</td> <td>RELAX NG 1.0</td> </tr> </tbody> </table>

Added in 1.5.

Java documentation for javax.xml.validation.SchemaFactory.

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

SchemaFactory()

Constructor for derived classes.

SchemaFactory(IntPtr, JniHandleOwnership)

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

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ErrorHandler

Gets the current IErrorHandler set to this SchemaFactory.

Handle

The handle to the underlying Android instance.

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

Gets the current ILSResourceResolver set to this SchemaFactory.

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)
GetFeature(String)

Look up the value of a feature flag.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetProperty(String)

Look up the value of a property.

IsSchemaLanguageSupported(String)

Is specified schema supported by this SchemaFactory?

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)
NewInstance(String, String, ClassLoader)

Returns an instance of the named implementation of SchemaFactory.

NewInstance(String)

Lookup an implementation of the SchemaFactory that supports the specified schema language and return it.

NewSchema()

Creates a special Schema object.

NewSchema(File)

Parses the specified File as a schema and returns it as a Schema.

NewSchema(ISource)

Parses the specified source as a schema and returns it as a schema.

NewSchema(ISource[])

Parses the specified source(s) as a schema and returns it as a schema.

NewSchema(URL)

Parses the specified URL as a schema and returns it as a Schema.

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)
SetFeature(String, Boolean)

Set the value of a feature flag.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetProperty(String, Object)

Set the value of a property.

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, 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)
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)

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