|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.bali.xml.model.dependency.BaseDeclRef
oracle.bali.xml.model.dependency.Reference
oracle.bali.xml.model.dependency.ReferenceBase
oracle.bali.xml.model.dependency.XmlReference
oracle.bali.xml.gui.jdev.dependency.XmlIndexReference
oracle.jdeveloper.xml.schema.dependency.NamedReference
public abstract class NamedReference
Base class for XML Schema references. A QName
is used to
identify the declaration being referenced.
Field Summary | |
---|---|
protected static javax.xml.namespace.QName |
NOT_FOUND
QName for references that cannot be resolved. |
protected javax.xml.namespace.QName |
qname
The QName being referenced. |
protected static java.net.URL |
SCHEMA_FOR_SCHEMA
The schema for schema URL. |
Constructor Summary | |
---|---|
NamedReference(oracle.bali.xml.model.XmlContext xmlContext,
org.w3c.dom.Node node,
int start,
int end)
|
Method Summary | |
---|---|
oracle.bali.xml.model.dependency.Declaration |
findDeclaration(oracle.bali.xml.model.dependency.DependencyContext context)
|
protected java.lang.String |
getDefaultNamespace(org.w3c.dom.Node node)
Get the default namespace for a DOM node. |
protected NamedDeclaration |
getNamedDeclaration(oracle.bali.xml.model.dependency.DependencyContext context,
java.lang.String key,
javax.xml.namespace.QName qname)
Get the declaration corresponding to a QName, or null the
declaration does not exist. |
protected NamedDeclaration |
getNamedDeclaration(java.net.URL url,
oracle.bali.xml.model.dependency.DependencyContext context,
java.lang.String key,
javax.xml.namespace.QName qname)
Get the declaration corresponding to a QName from a specific URL, or null the declaration does not exist in that URL. |
protected NamedDeclaration |
getNamedDeclaration(oracle.bali.xml.model.XmlContext xmlContext,
oracle.bali.xml.model.dependency.DependencyContext context,
java.lang.String key,
javax.xml.namespace.QName qname)
Get the declaration corresponding to a QName from a specific XML context, or null the declaration does not exist in that context. |
protected java.util.Map<java.lang.String,java.lang.String> |
getPrefixMap(org.w3c.dom.Node node)
Get the mapping from prefixes to namespaces. |
javax.xml.namespace.QName |
getQName()
Get the QName for the declaration being referenced. |
protected javax.xml.namespace.QName |
getQName(org.w3c.dom.Node node)
Get the QName being referenced by a DOM node, or null if
there is not one. |
protected abstract java.lang.String |
getReferenceKey()
Get the reference key used to look up this reference. |
protected java.util.Collection<SchemaReference> |
getSchemaReferences(oracle.bali.xml.model.dependency.DependencyContext context)
Get the set of schemas referenced by the document containing this reference. |
protected java.util.Collection<SchemaReference> |
getSchemaReferences(oracle.bali.xml.model.dependency.DependencyContext context,
oracle.bali.xml.model.XmlContext xmlContext)
|
protected java.lang.String |
getValue(org.w3c.dom.Node node)
Get the text value of the DOM node. |
boolean |
isReferenceFor(oracle.bali.xml.model.dependency.DependencyContext context,
oracle.bali.xml.model.dependency.Declaration declaration)
|
protected java.lang.String |
resolvePrefix(org.w3c.dom.Node node,
java.lang.String prefix)
Resolve a prefix to a namespace, in the context of the given DOM node. |
protected oracle.bali.xml.model.dependency.CommandResult |
updateReferenceImpl(oracle.bali.xml.model.dependency.DependencyContext context,
oracle.bali.xml.model.dependency.ValueInfo value)
|
Methods inherited from class oracle.bali.xml.model.dependency.XmlReference |
---|
getDomRange, getEndIndex, getFileURL, getNode, getStartIndex, getValue, getXmlContext, gotoSelfImpl, supportsGotoSelf, supportsUpdateReference, updateValue, validateDeclaration |
Methods inherited from class oracle.bali.xml.model.dependency.ReferenceBase |
---|
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 |
---|
protected static final javax.xml.namespace.QName NOT_FOUND
protected static final java.net.URL SCHEMA_FOR_SCHEMA
protected javax.xml.namespace.QName qname
Constructor Detail |
---|
public NamedReference(oracle.bali.xml.model.XmlContext xmlContext, org.w3c.dom.Node node, int start, int end)
Method Detail |
---|
public javax.xml.namespace.QName getQName()
protected abstract java.lang.String getReferenceKey()
public boolean isReferenceFor(oracle.bali.xml.model.dependency.DependencyContext context, oracle.bali.xml.model.dependency.Declaration declaration)
isReferenceFor
in class oracle.bali.xml.gui.jdev.dependency.XmlIndexReference
@Nullable protected java.util.Collection<SchemaReference> getSchemaReferences(oracle.bali.xml.model.dependency.DependencyContext context)
context
- the dependency context
@Nullable protected java.util.Collection<SchemaReference> getSchemaReferences(oracle.bali.xml.model.dependency.DependencyContext context, oracle.bali.xml.model.XmlContext xmlContext)
public oracle.bali.xml.model.dependency.Declaration findDeclaration(oracle.bali.xml.model.dependency.DependencyContext context)
findDeclaration
in class oracle.bali.xml.model.dependency.Reference
protected oracle.bali.xml.model.dependency.CommandResult updateReferenceImpl(oracle.bali.xml.model.dependency.DependencyContext context, oracle.bali.xml.model.dependency.ValueInfo value)
updateReferenceImpl
in class oracle.bali.xml.model.dependency.XmlReference
protected javax.xml.namespace.QName getQName(org.w3c.dom.Node node)
null
if
there is not one.
node
- the DOM node
null
if there is not oneprotected java.lang.String getDefaultNamespace(org.w3c.dom.Node node)
node
- the DOM node
protected java.lang.String resolvePrefix(org.w3c.dom.Node node, java.lang.String prefix)
node
- the DOM nodeprefix
- the prefix
protected java.util.Map<java.lang.String,java.lang.String> getPrefixMap(org.w3c.dom.Node node)
node
- the DOM node
protected final java.lang.String getValue(org.w3c.dom.Node node)
node
- the DOM node
protected NamedDeclaration getNamedDeclaration(oracle.bali.xml.model.dependency.DependencyContext context, java.lang.String key, javax.xml.namespace.QName qname)
null
the
declaration does not exist.
context
- the dependency contextkey
- the reference keyqname
- the QName
null
the declaration does not
existprotected NamedDeclaration getNamedDeclaration(java.net.URL url, oracle.bali.xml.model.dependency.DependencyContext context, java.lang.String key, javax.xml.namespace.QName qname)
null
the declaration does not exist in that URL.
url
- the URL of the document to searchcontext
- the dependency contextkey
- the reference keyqname
- the QName
null
the declaration does not
existprotected NamedDeclaration getNamedDeclaration(oracle.bali.xml.model.XmlContext xmlContext, oracle.bali.xml.model.dependency.DependencyContext context, java.lang.String key, javax.xml.namespace.QName qname)
null
the declaration does not exist in that context.
xmlContext
- the XML contextcontext
- the dependency contextkey
- the reference keyqname
- the QName
null
the declaration does not
exist
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |