Skip navigation links
oracle.jdeveloper.vcs.generic
Class VCSHistoryEntry
java.lang.Object
oracle.javatools.history.DefaultHistoryEntry
oracle.jdeveloper.history.BaseHistoryEntry
oracle.jdeveloper.vcs.spi.VCSHistoryEntry
oracle.jdeveloper.vcs.generic.VCSHistoryEntry
- All Implemented Interfaces:
- HistoryEntry
-
public abstract class VCSHistoryEntry
- extends VCSHistoryEntry
Method Summary |
protected CompareContributor |
createCompareContributor(java.net.URL sourceUrl, RevisionIdentifier revision)
|
protected CompareContributor |
createCompareContributor(java.net.URL sourceUrl, RevisionIdentifier revision, PatchCompareDescriptor patchDescriptor)
|
protected 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_profile
protected VCSProfile _profile
_url
protected java.net.URL _url
_compareRef
protected java.lang.ref.SoftReference _compareRef
VCSHistoryEntry
public VCSHistoryEntry(java.net.URL url,
VCSProfile profile)
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,
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
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 PatchCompareDescriptor createPatchDescriptor(java.net.URL sourceUrl,
RevisionIdentifier revision,
java.util.Date date)
throws java.lang.Exception
-
- Throws:
java.lang.Exception
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.