Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.jdeveloper.xml.schema.dependency
Class SchemaReferenceFactory

java.lang.Object
  extended by oracle.bali.xml.model.dependency.ReferenceFactory
      extended by oracle.bali.xml.model.dependency.TraversalReferenceFactory
          extended by oracle.jdeveloper.xml.schema.dependency.SchemaReferenceFactory
All Implemented Interfaces:
oracle.bali.xml.indexing.IndexingFactory, oracle.bali.xml.model.traversal.TraversalHandler
Direct Known Subclasses:
ImportReferenceFactory

public class SchemaReferenceFactory
extends oracle.bali.xml.model.dependency.TraversalReferenceFactory
implements oracle.bali.xml.indexing.IndexingFactory

Reference factory for XML Schema document references.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.bali.xml.indexing.IndexingFactory
oracle.bali.xml.indexing.IndexingFactory.IndexEntry
 
Constructor Summary
SchemaReferenceFactory()
           
 
Method Summary
 java.util.List<oracle.bali.xml.indexing.IndexingFactory.IndexEntry> getIndexEntries(oracle.bali.xml.grammar.QualifiedName elementQN, oracle.bali.xml.grammar.QualifiedName attrQN, java.lang.String value)
           
protected  oracle.bali.xml.model.dependency.Reference getReference(oracle.bali.xml.model.XmlContext context, org.w3c.dom.Node node, java.lang.String value)
           
 java.util.Collection<oracle.bali.xml.model.dependency.Reference> getReferences(oracle.bali.xml.model.XmlContext context, org.w3c.dom.Node node, java.lang.String value)
           
protected  java.net.URL getSchemaLocation(oracle.bali.xml.model.XmlContext context, org.w3c.dom.Node node, java.lang.String value)
          Get the location of the schema document, or null if the schema is not found.
protected  java.lang.String getTargetNamespace(oracle.bali.xml.model.XmlContext context, org.w3c.dom.Node node, java.lang.String value)
          Get the target namespace of the schema document, or null if not known.
protected  boolean isImportReference()
          This method gets the boolean flag notifying whether this factory instance belong to import element or not.
protected  boolean isTransitive(oracle.bali.xml.model.XmlContext context, org.w3c.dom.Node node, java.lang.String value)
          Determine whether the schema reference is transitive.
 
Methods inherited from class oracle.bali.xml.model.dependency.TraversalReferenceFactory
handleEndNode, handleStartNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaReferenceFactory

public SchemaReferenceFactory()
Method Detail

getSchemaLocation

@Nullable
protected java.net.URL getSchemaLocation(oracle.bali.xml.model.XmlContext context,
                                                  org.w3c.dom.Node node,
                                                  java.lang.String value)
Get the location of the schema document, or null if the schema is not found. The default implementation assumes the entire value of the node is a URL or a path relative to the referencing document. Subclasses can override this to provide different behavior.

Parameters:
context - the XML context
node - the DOM node containing the reference
value - the node value
Returns:
the location of the schema document

getTargetNamespace

@Nullable
protected java.lang.String getTargetNamespace(oracle.bali.xml.model.XmlContext context,
                                                       org.w3c.dom.Node node,
                                                       java.lang.String value)
Get the target namespace of the schema document, or null if not known. The default implementation returns null. Subclasses can override this if they can provide the target namespace.

Parameters:
context - the XML context
node - the DOM node containing the reference
value - the node value
Returns:
the target namespace

isTransitive

protected boolean isTransitive(oracle.bali.xml.model.XmlContext context,
                               org.w3c.dom.Node node,
                               java.lang.String value)
Determine whether the schema reference is transitive. That is, whether a reference from A to B, and from B to C, implies a reference bewteen A and C.

Parameters:
context - the XML context
node - the DOM node containing the reference
value - the node value
Returns:
true if the reference is transitive, false otherwise

getReference

protected oracle.bali.xml.model.dependency.Reference getReference(oracle.bali.xml.model.XmlContext context,
                                                                  org.w3c.dom.Node node,
                                                                  java.lang.String value)

getReferences

public java.util.Collection<oracle.bali.xml.model.dependency.Reference> getReferences(oracle.bali.xml.model.XmlContext context,
                                                                                      org.w3c.dom.Node node,
                                                                                      java.lang.String value)
Specified by:
getReferences in class oracle.bali.xml.model.dependency.ReferenceFactory

getIndexEntries

public java.util.List<oracle.bali.xml.indexing.IndexingFactory.IndexEntry> getIndexEntries(oracle.bali.xml.grammar.QualifiedName elementQN,
                                                                                           oracle.bali.xml.grammar.QualifiedName attrQN,
                                                                                           java.lang.String value)
Specified by:
getIndexEntries in interface oracle.bali.xml.indexing.IndexingFactory

isImportReference

protected boolean isImportReference()
This method gets the boolean flag notifying whether this factory instance belong to import element or not. The default SchemaReferenceFactory implementation returns false.

Returns:
false

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

Copyright © 1997, 2009, Oracle. All rights reserved.