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

E13403-07

oracle.jdeveloper.webapp.datatransfer
Class URLToNodeTransformer

java.lang.Object
  extended by oracle.jdeveloper.webapp.datatransfer.URLToNodeTransformer
Direct Known Subclasses:
AbstractImageToNodeTransformer

public abstract class URLToNodeTransformer
extends java.lang.Object

Interface to transform an URL to a Node. An example implementation is the Img tag support class, which transforms URLs that refer to images into Nodes.


Field Summary
static java.lang.Object METADATA_ADD_URL_TO_PROJECT
          A well-defined key for metadata that marks that tranformed URL should be added to the project.
static float STANDARD_TRANSFORMATION_RANK
           
 
Constructor Summary
URLToNodeTransformer()
           
 
Method Summary
 boolean canTransform(java.net.URL url, java.lang.Class nodeType, oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position)
           
protected  boolean canTransformImpl(java.net.URL url, java.lang.Class nodeType, oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position)
          Validates insertion position.
 float getSuitabilityRank()
           
abstract  oracle.bali.xml.metadata.XmlKey potentialKey(java.net.URL url, java.lang.Class nodeType, oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position)
           
abstract  org.w3c.dom.Node transform(java.net.URL url, java.lang.Class nodeType, oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position, boolean copyToProject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METADATA_ADD_URL_TO_PROJECT

public static final java.lang.Object METADATA_ADD_URL_TO_PROJECT
A well-defined key for metadata that marks that tranformed URL should be added to the project.


STANDARD_TRANSFORMATION_RANK

public static final float STANDARD_TRANSFORMATION_RANK
See Also:
Constant Field Values
Constructor Detail

URLToNodeTransformer

public URLToNodeTransformer()
Method Detail

transform

public abstract org.w3c.dom.Node transform(java.net.URL url,
                                           java.lang.Class nodeType,
                                           oracle.bali.xml.model.AbstractModel model,
                                           oracle.bali.xml.dom.position.DomPosition position,
                                           boolean copyToProject)
Parameters:
copyToProject - Transformer should cdd URL to the project if this argument is set to true.
Returns:
A Node if the URL can be transformed, otherwise return null.

potentialKey

public abstract oracle.bali.xml.metadata.XmlKey potentialKey(java.net.URL url,
                                                             java.lang.Class nodeType,
                                                             oracle.bali.xml.model.AbstractModel model,
                                                             oracle.bali.xml.dom.position.DomPosition position)
Returns:
A XmlKey of a node if the URL can be transformed, otherwise return null.

canTransform

public boolean canTransform(java.net.URL url,
                            java.lang.Class nodeType,
                            oracle.bali.xml.model.AbstractModel model,
                            oracle.bali.xml.dom.position.DomPosition position)
Returns:
true if the URL can be transformed, otherwise return false.

canTransformImpl

protected boolean canTransformImpl(java.net.URL url,
                                   java.lang.Class nodeType,
                                   oracle.bali.xml.model.AbstractModel model,
                                   oracle.bali.xml.dom.position.DomPosition position)
Validates insertion position.

Parameters:
url -
nodeType -
model -
position -
Returns:

getSuitabilityRank

public float getSuitabilityRank()

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

E13403-07

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