|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.oxm.schema.XMLSchemaReference
public abstract class XMLSchemaReference
Provides a way for a descriptor's reference to its schema to be specified. The schema can be reference through a classpath resource, a file or URL.
| Field Summary | |
|---|---|
protected java.lang.String |
resourceThe string used to access the XMLSchema, be it classpath resource, URL, or file name |
protected java.lang.String |
schemaContextThe path to a simple/complex type definition or element in the schema |
protected javax.xml.namespace.QName |
schemaContextAsQName |
protected int |
typeIndicates if a simple/complex type definition, element, or group is being referenced |
| Fields inherited from interface org.eclipse.persistence.platform.xml.XMLSchemaReference |
|---|
COMPLEX_TYPE, ELEMENT, GROUP, SIMPLE_TYPE |
| Constructor Summary | |
|---|---|
protected |
XMLSchemaReference()The default constructor. |
protected |
XMLSchemaReference(java.lang.String resource)This constructor takes a string that references an XMLSchema. |
| Method Summary | |
|---|---|
java.lang.String |
getResource() |
java.lang.String |
getSchemaContext()Get the path to the simple/complex type definition, element or group to be referenced in the schema |
javax.xml.namespace.QName |
getSchemaContextAsQName() |
javax.xml.namespace.QName |
getSchemaContextAsQName(NamespaceResolver nsResolver) |
int |
getType()Indicates if the schema reference references a simple type definition, complex type definition, element, or group. |
abstract java.net.URL |
getURL()A URL which referenes the Schema. |
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)Allow subclasses to perform initialization if required. |
boolean |
isGlobalDefinition()Indicates a global definition |
boolean |
isValid(org.w3c.dom.Document document, org.xml.sax.ErrorHandler errorHandler) |
void |
setResource(java.lang.String resource) |
void |
setSchemaContext(java.lang.String schemaContext)Set the path to the simple/complex type definition, element, or group to be referenced in the schema |
void |
setSchemaContextAsQName(javax.xml.namespace.QName qname) |
void |
setType(int type)Set to indicate if the schema reference references a simple type definition, complex type definition, element or group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String resource
protected java.lang.String schemaContext
protected int type
protected javax.xml.namespace.QName schemaContextAsQName
| Constructor Detail |
|---|
protected XMLSchemaReference()
protected XMLSchemaReference(java.lang.String resource)
resource - - used to access the XMLSchema (classpath, URL, or file name)| Method Detail |
|---|
public java.lang.String getResource()
public void setResource(java.lang.String resource)
public abstract java.net.URL getURL()
XMLSchemaReferencegetURL in interface XMLSchemaReferencepublic int getType()
getType in interface XMLSchemaReferencepublic void setType(int type)
type - - COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5public java.lang.String getSchemaContext()
getSchemaContext in interface XMLSchemaReferencepublic void setSchemaContext(java.lang.String schemaContext)
schemaContext - - the schema contextpublic void setSchemaContextAsQName(javax.xml.namespace.QName qname)
public javax.xml.namespace.QName getSchemaContextAsQName()
public javax.xml.namespace.QName getSchemaContextAsQName(NamespaceResolver nsResolver)
public boolean isValid(org.w3c.dom.Document document,
org.xml.sax.ErrorHandler errorHandler)
public boolean isGlobalDefinition()
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
session -
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||