Skip navigation links

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

E17493-04


oracle.jdeveloper.vcs.generic
Class VCSHistoryEntry

java.lang.Object
  extended by oracle.javatools.history.DefaultHistoryEntry
      extended by oracle.jdeveloper.history.BaseHistoryEntry
          extended by oracle.jdeveloper.vcs.spi.VCSHistoryEntry
              extended by oracle.jdeveloper.vcs.generic.VCSHistoryEntry

All Implemented Interfaces:
HistoryEntry

public abstract class VCSHistoryEntry
extends VCSHistoryEntry

Field Summary
protected  java.lang.ref.SoftReference _compareRef
           
protected  VCSProfile _profile
           
protected  java.net.URL _url
           

 

Constructor Summary
VCSHistoryEntry(java.net.URL url, VCSProfile profile)
           

 

Method Summary
protected  void configureCompareContributor(CompareContributor contributor, java.net.URL url, RevisionIdentifier rev)
           
protected  CompareContributor createCompareContributor(java.net.URL sourceUrl, RevisionIdentifier revision)
           
protected  CompareContributor createCompareContributor(java.net.URL sourceUrl, RevisionIdentifier revision, oracle.jdeveloper.compare.PatchCompareDescriptor patchDescriptor)
           
protected  oracle.jdeveloper.compare.PatchCompareDescriptor createPatchDescriptor(java.net.URL sourceUrl, RevisionIdentifier revision, java.util.Date date)
           
 CompareContributor getCompareContributor()
          Get the compare contributor for this entry in the history.
protected abstract  java.io.InputStream getContent(java.net.URL url, RevisionIdentifier rev)
           
protected  java.lang.String getEncoding(java.net.URL url, RevisionIdentifier rev)
           
protected  java.lang.String getResourceName(java.net.URL url, RevisionIdentifier rev)
           
protected  java.lang.Object getValue(java.lang.String propertyId)
          Convenience method for getting values of properties for this entry, just translates the propertyId into a HistoryProperty instance using the VCSProfile.
protected  oracle.javatools.compare.algorithm.directory.DirectoryList listDirectory(java.net.URL directoryUrl, RevisionIdentifier revision)
           
protected  void setValue(java.lang.String propertyId, java.lang.Object value)
          Convenience method for setting values of properties for this entry, just translates the propertyId into a HistoryProperty instance using the VCSProfile.

 

Methods inherited from class oracle.jdeveloper.history.BaseHistoryEntry
canRestore, restore

 

Methods inherited from class oracle.javatools.history.DefaultHistoryEntry
getValue, setValue

 

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

 

Field Detail

_profile

protected VCSProfile _profile

_url

protected java.net.URL _url

_compareRef

protected java.lang.ref.SoftReference _compareRef

Constructor Detail

VCSHistoryEntry

public VCSHistoryEntry(java.net.URL url,
                       VCSProfile profile)

Method Detail

setValue

protected void setValue(java.lang.String propertyId,
                        java.lang.Object value)
Convenience method for setting values of properties for this entry, just translates the propertyId into a HistoryProperty instance using the VCSProfile. No action is taken if there is no property with the specified id.
Parameters:
propertyId - the id of a {@link oracle.javatools.history.HistoryProperty as declared in the profile.
value - the value of the property.

getValue

protected java.lang.Object getValue(java.lang.String propertyId)
Convenience method for getting values of properties for this entry, just translates the propertyId into a HistoryProperty instance using the VCSProfile.
Parameters:
propertyId - the id of a {@link oracle.javatools.history.HistoryProperty as declared in the profile.
Returns:
value the value of the property, may be null if the specified property does not exist or has not been set.

getCompareContributor

public CompareContributor getCompareContributor()
                                         throws java.lang.Exception
Description copied from interface: HistoryEntry
Get the compare contributor for this entry in the history. This is used by the history viewer to display a diff of this entry with another entry.
Returns:
a compare contributor for this history entry.
Throws:
java.lang.Exception

createCompareContributor

protected CompareContributor createCompareContributor(java.net.URL sourceUrl,
                                                      RevisionIdentifier revision,
                                                      oracle.jdeveloper.compare.PatchCompareDescriptor patchDescriptor)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

listDirectory

protected oracle.javatools.compare.algorithm.directory.DirectoryList listDirectory(java.net.URL directoryUrl,
                                                                                   RevisionIdentifier revision)
                                                                            throws java.lang.Exception,
                                                                                   java.lang.UnsupportedOperationException
Throws:
java.lang.Exception
java.lang.UnsupportedOperationException

createCompareContributor

protected CompareContributor createCompareContributor(java.net.URL sourceUrl,
                                                      RevisionIdentifier revision)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

configureCompareContributor

protected void configureCompareContributor(CompareContributor contributor,
                                           java.net.URL url,
                                           RevisionIdentifier rev)

getResourceName

protected java.lang.String getResourceName(java.net.URL url,
                                           RevisionIdentifier rev)

getEncoding

protected java.lang.String getEncoding(java.net.URL url,
                                       RevisionIdentifier rev)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getContent

protected abstract java.io.InputStream getContent(java.net.URL url,
                                                  RevisionIdentifier rev)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

createPatchDescriptor

protected oracle.jdeveloper.compare.PatchCompareDescriptor createPatchDescriptor(java.net.URL sourceUrl,
                                                                                 RevisionIdentifier revision,
                                                                                 java.util.Date date)
                                                                          throws java.lang.Exception
Throws:
java.lang.Exception

Skip navigation links

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

E17493-04


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