|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
Fields inherited from interface org.eclipse.persistence.platform.xml.XMLSchemaReference |
---|
COMPLEX_TYPE, ELEMENT, GROUP, SIMPLE_TYPE |
Method Summary | |
---|---|
String |
getResource()
|
String |
getSchemaContext()
Get the path to the simple/complex type definition, element or group to be referenced in the schema |
QName |
getSchemaContextAsQName()
|
QName |
getSchemaContextAsQName(NamespaceResolver nsResolver)
|
int |
getType()
Indicates if the schema reference references a simple type definition, complex type definition, element, or group. |
abstract 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(Document document,
ErrorHandler errorHandler)
|
void |
setResource(String resource)
|
void |
setSchemaContext(String schemaContext)
Set the path to the simple/complex type definition, element, or group to be referenced in the schema |
void |
setSchemaContextAsQName(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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getResource()
public void setResource(String resource)
public abstract 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 String getSchemaContext()
getSchemaContext
in interface XMLSchemaReference
public void setSchemaContext(String schemaContext)
schemaContext
- -
the schema contextpublic void setSchemaContextAsQName(QName qname)
public QName getSchemaContextAsQName()
public QName getSchemaContextAsQName(NamespaceResolver nsResolver)
public boolean isValid(Document document, 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 |