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 NamedDeclaration

java.lang.Object
  extended by oracle.bali.xml.model.dependency.BaseDeclRef
      extended by oracle.bali.xml.model.dependency.Declaration
          extended by oracle.bali.xml.model.dependency.DeclarationBase
              extended by oracle.bali.xml.model.dependency.XmlDeclaration
                  extended by oracle.bali.xml.gui.jdev.dependency.XmlIndexDeclaration
                      extended by oracle.jdeveloper.xml.schema.dependency.NamedDeclaration
All Implemented Interfaces:
oracle.bali.xml.model.traversal.TraversalHandler
Direct Known Subclasses:
AttributeDeclaration, AttributeGroupDeclaration, ElementDeclaration, GroupDeclaration, TypeDeclaration

public abstract class NamedDeclaration
extends oracle.bali.xml.gui.jdev.dependency.XmlIndexDeclaration
implements oracle.bali.xml.model.traversal.TraversalHandler

Base class for XML Schema declarations. A QName is used to identify the declaration.


Field Summary
protected  javax.xml.namespace.QName qname
          The QName identifying this declaration.
 
Constructor Summary
NamedDeclaration(oracle.bali.xml.model.XmlContext xmlContext, org.w3c.dom.Node node, int start, int end)
           
 
Method Summary
static java.util.Map<javax.xml.namespace.QName,NamedDeclaration> getDeclarationMap(oracle.bali.xml.model.traversal.TraversalData data, java.lang.String key)
          Get the mapping from QName to declaration.
 java.net.URL getFileURL()
          Get the URL containing this declaration.
 javax.xml.namespace.QName getQName()
          Get the QName identifying this declaration.
protected  javax.xml.namespace.QName getQName(org.w3c.dom.Node node)
          Get the QName defined by a DOM node.
 java.lang.String getReferenceValue(oracle.bali.xml.model.dependency.DependencyContext context)
           
protected  java.lang.String getTargetNamespace(org.w3c.dom.Node node)
          Get the target namespace for a DOM node.
protected  java.lang.String getValue(org.w3c.dom.Node node)
          Get the text value of a DOM node.
 void handleEndNode(oracle.bali.xml.model.XmlModel model, org.w3c.dom.Node node, oracle.bali.xml.model.traversal.MutableTraversalData data)
           
 void handleStartNode(oracle.bali.xml.model.XmlModel model, org.w3c.dom.Node node, oracle.bali.xml.model.traversal.MutableTraversalData data)
           
 
Methods inherited from class oracle.bali.xml.gui.jdev.dependency.XmlIndexDeclaration
findUsages, getReferenceKey, getScope
 
Methods inherited from class oracle.bali.xml.model.dependency.XmlDeclaration
getDomRange, getEndIndex, getNode, getStartIndex, getValue, getXmlContext, gotoSelfImpl, renameImpl, supportsGotoSelf, supportsRename, updateValue
 
Methods inherited from class oracle.bali.xml.model.dependency.DeclarationBase
performCommand, supportsCommand
 
Methods inherited from class oracle.bali.xml.model.dependency.BaseDeclRef
getDisplayNameImpl, getMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qname

protected javax.xml.namespace.QName qname
The QName identifying this declaration.

Constructor Detail

NamedDeclaration

public NamedDeclaration(oracle.bali.xml.model.XmlContext xmlContext,
                        org.w3c.dom.Node node,
                        int start,
                        int end)
Method Detail

getDeclarationMap

public static final java.util.Map<javax.xml.namespace.QName,NamedDeclaration> getDeclarationMap(oracle.bali.xml.model.traversal.TraversalData data,
                                                                                                java.lang.String key)
Get the mapping from QName to declaration.

Parameters:
data - the traversal data
key - the reference key
Returns:
the mapping from QName to declaration

getQName

public javax.xml.namespace.QName getQName()
Get the QName identifying this declaration.

Returns:
the QName for this declaration

getFileURL

public java.net.URL getFileURL()
Get the URL containing this declaration.

Returns:
the URL

handleStartNode

public void handleStartNode(oracle.bali.xml.model.XmlModel model,
                            org.w3c.dom.Node node,
                            oracle.bali.xml.model.traversal.MutableTraversalData data)
Specified by:
handleStartNode in interface oracle.bali.xml.model.traversal.TraversalHandler

handleEndNode

public void handleEndNode(oracle.bali.xml.model.XmlModel model,
                          org.w3c.dom.Node node,
                          oracle.bali.xml.model.traversal.MutableTraversalData data)
Specified by:
handleEndNode in interface oracle.bali.xml.model.traversal.TraversalHandler

getReferenceValue

public java.lang.String getReferenceValue(oracle.bali.xml.model.dependency.DependencyContext context)
Specified by:
getReferenceValue in class oracle.bali.xml.gui.jdev.dependency.XmlIndexDeclaration

getQName

protected javax.xml.namespace.QName getQName(org.w3c.dom.Node node)
Get the QName defined by a DOM node.

Parameters:
node - the DOM node
Returns:
the QName defined by the DOM node

getValue

protected final java.lang.String getValue(org.w3c.dom.Node node)
Get the text value of a DOM node.

Parameters:
node - the DOM node
Returns:
the text value of the DOM node

getTargetNamespace

protected java.lang.String getTargetNamespace(org.w3c.dom.Node node)
Get the target namespace for a DOM node.

Parameters:
node - the DOM node
Returns:
the target namespace

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.