Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.webapp.datatransfer
Class AbstractImageToNodeTransformer

java.lang.Object
  extended by oracle.jdeveloper.webapp.datatransfer.URLToNodeTransformer
      extended by oracle.jdeveloper.webapp.datatransfer.AbstractImageToNodeTransformer

public abstract class AbstractImageToNodeTransformer
extends URLToNodeTransformer


Field Summary
protected  oracle.bali.xml.grammar.QualifiedName heightAttrQName
           
protected  oracle.bali.xml.grammar.QualifiedName imageQName
           
protected  oracle.bali.xml.metadata.XmlKey imageXmlKey
           
protected  java.lang.String name
           
protected  java.lang.String namespace
           
protected  oracle.bali.xml.grammar.QualifiedName urlAttrQName
           
protected  oracle.bali.xml.grammar.QualifiedName widthAttrQName
           
 
Fields inherited from class oracle.jdeveloper.webapp.datatransfer.URLToNodeTransformer
METADATA_ADD_URL_TO_PROJECT, STANDARD_TRANSFORMATION_RANK
 
Constructor Summary
protected AbstractImageToNodeTransformer(java.lang.String namespace, java.lang.String name)
           
protected AbstractImageToNodeTransformer(java.lang.String namespace, java.lang.String name, java.lang.String width, java.lang.String height, java.lang.String url)
           
 
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  org.w3c.dom.Element createImageNode(oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position)
           
protected  oracle.bali.xml.grammar.QualifiedName getHeightAttrName()
           
 float getSuitabilityRank()
           
protected  oracle.bali.xml.grammar.QualifiedName getURLAttrName()
           
protected  oracle.bali.xml.grammar.QualifiedName getWidthAttrName()
           
protected  void initImageNode(javax.swing.ImageIcon imageIcon, java.net.URL url, org.w3c.dom.Element imageNode, oracle.bali.xml.model.AbstractModel model, oracle.bali.xml.dom.position.DomPosition position, boolean copyToProject)
           
protected  boolean isValidImage(java.net.URL url)
           
 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)
           
 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 oracle.jdeveloper.webapp.datatransfer.URLToNodeTransformer
canTransformImpl, getTransferDataMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name

namespace

protected final java.lang.String namespace

imageQName

protected final oracle.bali.xml.grammar.QualifiedName imageQName

imageXmlKey

protected final oracle.bali.xml.metadata.XmlKey imageXmlKey

heightAttrQName

protected oracle.bali.xml.grammar.QualifiedName heightAttrQName

widthAttrQName

protected oracle.bali.xml.grammar.QualifiedName widthAttrQName

urlAttrQName

protected oracle.bali.xml.grammar.QualifiedName urlAttrQName
Constructor Detail

AbstractImageToNodeTransformer

protected AbstractImageToNodeTransformer(java.lang.String namespace,
                                         java.lang.String name)

AbstractImageToNodeTransformer

protected AbstractImageToNodeTransformer(java.lang.String namespace,
                                         java.lang.String name,
                                         java.lang.String width,
                                         java.lang.String height,
                                         java.lang.String url)
Method Detail

getSuitabilityRank

public float getSuitabilityRank()
Overrides:
getSuitabilityRank in class URLToNodeTransformer

potentialKey

public 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)
Specified by:
potentialKey in class URLToNodeTransformer
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)
Overrides:
canTransform in class URLToNodeTransformer
Returns:
true if the URL can be transformed, otherwise return false.

isValidImage

protected boolean isValidImage(java.net.URL url)

transform

public 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)
Specified by:
transform in class URLToNodeTransformer
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.

createImageNode

protected org.w3c.dom.Element createImageNode(oracle.bali.xml.model.AbstractModel model,
                                              oracle.bali.xml.dom.position.DomPosition position)

initImageNode

protected void initImageNode(javax.swing.ImageIcon imageIcon,
                             java.net.URL url,
                             org.w3c.dom.Element imageNode,
                             oracle.bali.xml.model.AbstractModel model,
                             oracle.bali.xml.dom.position.DomPosition position,
                             boolean copyToProject)

getHeightAttrName

protected oracle.bali.xml.grammar.QualifiedName getHeightAttrName()

getWidthAttrName

protected oracle.bali.xml.grammar.QualifiedName getWidthAttrName()

getURLAttrName

protected oracle.bali.xml.grammar.QualifiedName getURLAttrName()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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