Skip navigation links 
 
oracle.jdeveloper.webapp.datatransfer
Class URLToNodeTransformer
java.lang.Object
   oracle.jdeveloper.webapp.datatransfer.URLToNodeTransformer
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.
 Nodes.
 
  
 
  
 
| 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 | 
 
 
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
 
URLToNodeTransformer
public URLToNodeTransformer()
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()
Skip navigation links 
 
Copyright © 1997, 2015, Oracle. All rights reserved.