Skip navigation links

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

E52944-01


oracle.jdeveloper.compare
Class URLContributor

java.lang.Object
  extended by oracle.javatools.compare.CompareContributor
      extended by oracle.javatools.compare.algorithm.sequence.SequenceCompareContributor
          extended by oracle.javatools.compare.algorithm.text.TextCompareContributor
              extended by oracle.jdeveloper.compare.IdeTextCompareContributor
                  extended by oracle.jdeveloper.compare.URLContributor

All Implemented Interfaces:
IdeCompareContributor, PatchCompareContributor

public class URLContributor
extends IdeTextCompareContributor
implements PatchCompareContributor

A contributor to compare based on a URL

Since:
release specific (what release of product did this appear in)

Constructor Summary
URLContributor(java.lang.String suffix, java.net.URL nodeUrl, java.net.URL dataUrl)
          Consructor.
URLContributor(java.net.URL url)
           
URLContributor(java.net.URL nodeUrl, java.net.URL dataUrl)
           

 

Method Summary
 java.lang.String getLongLabel()
          Get a long label for this comparable element.
 Node getNode()
          Gets the primary node instance associated with the compare contributor.
 PatchCompareDescriptor getPatchDescriptor()
          Gets the patch descriptor object for the compare contributor, used in the creation of a patch.
protected static java.lang.String getPlatformPathSuffix(java.net.URL url)
           
 java.lang.String getShortLabel()
          Get a short label for this comparable element.
 StreamType getStreamType()
           
 TextBuffer getTextBuffer()
          Gets the text buffer for the comparison and patch contribution.
 java.lang.String getType()
          Get the extension of the file this contributor represents.
 java.net.URL getURL()
           
 void setType(java.lang.String type)
          Set the extension of the file this contributor represents.

 

Methods inherited from class oracle.jdeveloper.compare.IdeTextCompareContributor
getContextNode, isTextProcessed, setContextNode, setTextProcessed

 

Methods inherited from class oracle.javatools.compare.algorithm.text.TextCompareContributor
addChangeListener, addTextBufferListeners, deleteElement, equal, fireChangeEvent, getDocumentModel, getElement, getIgnoreWhitespace, getLength, insertElement, removeChangeListener, replaceElement, setDocumentModel, setIgnoreWhitespace

 

Methods inherited from class oracle.javatools.compare.CompareContributor
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, setLongLabel, setShortLabel

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.jdeveloper.compare.PatchCompareContributor
getIgnoreWhitespace

 

Constructor Detail

URLContributor

public URLContributor(java.net.URL url)
               throws java.io.IOException
Throws:
java.io.IOException

URLContributor

public URLContributor(java.net.URL nodeUrl,
                      java.net.URL dataUrl)
               throws java.io.IOException
Throws:
java.io.IOException

URLContributor

public URLContributor(java.lang.String suffix,
                      java.net.URL nodeUrl,
                      java.net.URL dataUrl)
               throws java.io.IOException
Consructor. This form of the constructor is useful for handling URLs whose suffix does not conform to those recognized for a specific encoding. For example; html source persisted to an URL without any suffix could still be read using the correct encoding simply by passing ".html" as the suffix argument.
Parameters:
suffix - The suffix to use when interpreting the contents of the given URL with respect to determining an encoding. The actual suffix of the given URL is ignored.
nodeUrl - the original node URL, which may be null.
dataUrl - the URL
Throws:
java.io.IOException
See Also:
URLFileSystem.getSuffix(java.net.URL)

Method Detail

getURL

public java.net.URL getURL()

getPlatformPathSuffix

protected static java.lang.String getPlatformPathSuffix(java.net.URL url)

getTextBuffer

public TextBuffer getTextBuffer()
Description copied from interface: PatchCompareContributor
Gets the text buffer for the comparison and patch contribution.
Specified by:
getTextBuffer in interface PatchCompareContributor
Specified by:
getTextBuffer in class oracle.javatools.compare.algorithm.text.TextCompareContributor
Returns:
the contributor text buffer.

getType

public java.lang.String getType()
Description copied from class: CompareContributor
Get the extension of the file this contributor represents. This is currently only used to determine the syntax highlighting style for the text compare viewer, but it will almost certainly be used for other things in the future. By default, this method returns an empty string.
Overrides:
getType in class CompareContributor
Returns:
an extension for this file without any period prefix. E.g. "java".

setType

public void setType(java.lang.String type)
Description copied from class: CompareContributor
Set the extension of the file this contributor represents.
Overrides:
setType in class CompareContributor
Parameters:
type - an extension for this file without any period prefix. E.g. "java".

getShortLabel

public java.lang.String getShortLabel()
Description copied from class: CompareContributor
Get a short label for this comparable element.
Overrides:
getShortLabel in class CompareContributor
Returns:
a short label for this comparable element.

getLongLabel

public java.lang.String getLongLabel()
Description copied from class: CompareContributor
Get a long label for this comparable element.
Overrides:
getLongLabel in class CompareContributor
Returns:
a long label for this comparable element.

getPatchDescriptor

public PatchCompareDescriptor getPatchDescriptor()
Description copied from interface: PatchCompareContributor
Gets the patch descriptor object for the compare contributor, used in the creation of a patch.
Specified by:
getPatchDescriptor in interface PatchCompareContributor
Returns:
the patch descriptor object.

getStreamType

public StreamType getStreamType()

getNode

public Node getNode()
Description copied from interface: IdeCompareContributor
Gets the primary node instance associated with the compare contributor.
Specified by:
getNode in interface IdeCompareContributor
Overrides:
getNode in class IdeTextCompareContributor
Returns:
the node.

Skip navigation links

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

E52944-01


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