Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.ox.schema
Class XMLSchemaReference

java.lang.Object
  extended by oracle.toplink.ox.schema.XMLSchemaReference
All Implemented Interfaces:
XMLSchemaReference
Direct Known Subclasses:
XMLSchemaClassPathReference, XMLSchemaFileReference, XMLSchemaURLReference

public abstract class XMLSchemaReference
extends java.lang.Object
implements 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 oracle.toplink.platform.xml.XMLSchemaReference
COMPLEX_TYPE, ELEMENT, GROUP, SIMPLE_TYPE
 
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(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.
 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 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

getResource

public java.lang.String getResource()

setResource

public void setResource(java.lang.String resource)

getURL

public abstract java.net.URL getURL()
Description copied from interface: oracle.toplink.platform.xml.XMLSchemaReference
A URL which referenes the Schema.

Specified by:
getURL in interface XMLSchemaReference
Returns:
the schema URL

getType

public int getType()
Indicates if the schema reference references a simple type definition, complex type definition, element, or group.

Specified by:
getType in interface XMLSchemaReference
Returns:
COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5

setType

public void setType(int type)
Set to indicate if the schema reference references a simple type definition, complex type definition, element or group.

Parameters:
type - - COMPLEX_TYPE=1, SIMPLE_TYPE=2, ELEMENT=3, GROUP=5

getSchemaContext

public java.lang.String getSchemaContext()
Get the path to the simple/complex type definition, element or group to be referenced in the schema

Specified by:
getSchemaContext in interface XMLSchemaReference
Returns:
the schema context

setSchemaContext

public void setSchemaContext(java.lang.String schemaContext)
Set the path to the simple/complex type definition, element, or group to be referenced in the schema

Parameters:
schemaContext - - the schema context

getSchemaContextAsQName

public javax.xml.namespace.QName getSchemaContextAsQName(NamespaceResolver nsResolver)

isValid

public boolean isValid(org.w3c.dom.Document document,
                       org.xml.sax.ErrorHandler errorHandler)

isGlobalDefinition

public boolean isGlobalDefinition()
Indicates a global definition


Copyright © 1998, 2012, Oracle. All Rights Reserved.