|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
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 |
resource
The string used to access the XMLSchema, be it classpath resource, URL, or file name |
protected java.lang.String |
schemaContext
The path to a simple/complex type definition or element in the schema |
protected javax.xml.namespace.QName |
schemaContextAsQName
|
protected int |
type
Indicates 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()
XMLSchemaReference
getURL
in interface XMLSchemaReference
public int getType()
getType
in interface XMLSchemaReference
public void setType(int type)
type
- -
COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5public java.lang.String getSchemaContext()
getSchemaContext
in interface XMLSchemaReference
public 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
-
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |