public abstract class XMLSchemaReference extends java.lang.Object implements XMLSchemaReference
Modifier and Type | Field and Description |
---|---|
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
|
COMPLEX_TYPE, ELEMENT, GROUP, SIMPLE_TYPE
Modifier | Constructor and Description |
---|---|
protected |
XMLSchemaReference()
The default constructor.
|
protected |
XMLSchemaReference(java.lang.String resource)
This constructor takes a string that references an XMLSchema.
|
Modifier and Type | Method and Description |
---|---|
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(org.eclipse.persistence.internal.oxm.NamespaceResolver nsResolver)
INTERNAL:
|
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.core.sessions.CoreAbstractSession 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.
|
protected java.lang.String resource
protected java.lang.String schemaContext
protected int type
protected javax.xml.namespace.QName schemaContextAsQName
protected XMLSchemaReference()
protected XMLSchemaReference(java.lang.String resource)
resource
- -
used to access the XMLSchema (classpath, URL, or file name)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(org.eclipse.persistence.internal.oxm.NamespaceResolver nsResolver)
nsResolver
- public boolean isValid(org.w3c.dom.Document document, org.xml.sax.ErrorHandler errorHandler)
public boolean isGlobalDefinition()
public void initialize(org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session)
session
-