public abstract class XMLSchemaReference extends Object implements XMLSchemaReference
Modifier and Type | Field and Description |
---|---|
protected String |
resource
The string used to access the XMLSchema, be it classpath resource, URL,
or file name
|
protected String |
schemaContext
The path to a simple/complex type definition or element in the schema
|
protected 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(String resource)
This constructor takes a string that references an XMLSchema.
|
Modifier and Type | Method and Description |
---|---|
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(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 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(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.
|
protected String resource
protected String schemaContext
protected int type
protected QName schemaContextAsQName
protected XMLSchemaReference()
protected XMLSchemaReference(String resource)
resource
- -
used to access the XMLSchema (classpath, URL, or file name)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(org.eclipse.persistence.internal.oxm.NamespaceResolver nsResolver)
nsResolver
- public boolean isValid(Document document, ErrorHandler errorHandler)
public boolean isGlobalDefinition()
public void initialize(org.eclipse.persistence.internal.core.sessions.CoreAbstractSession session)
session
- Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.