allensoft.javacvs.client
Class Entry

java.lang.Object
  |
  +--allensoft.javacvs.client.Entry
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
DirectoryEntry, FileEntry

public abstract class Entry
extends java.lang.Object
implements java.lang.Comparable

Defines a single entry in the Entries file.


Field Summary
protected  java.lang.String m_sName
           
 
Constructor Summary
protected Entry(WorkingDirectory workingDirectory)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void addPropertyChangeListener(java.lang.String sProperty, java.beans.PropertyChangeListener l)
           
 int compareTo(java.lang.Object o)
           
protected  void firePropertyChange(java.beans.PropertyChangeEvent e)
           
protected  void firePropertyChange(java.lang.String sProperty, boolean oldValue, boolean newValue)
           
protected  void firePropertyChange(java.lang.String sProperty, int oldValue, int newValue)
           
protected  void firePropertyChange(java.lang.String sProperty, java.lang.Object oldValue, java.lang.Object newValue)
           
 java.lang.String getAbsoluteRepositoryPath()
           
static Entry getEntry(java.io.File file)
          Gets the CVSEntry object for the specified file.
static Entry getEntry(java.lang.String file)
           
 java.io.File getFile()
          Gets the file that this entry represents.
 java.lang.String getName()
          Gets the name of this entry.
 WorkingDirectory getWorkingDirectory()
          Gets the working directory this entry belongs to.
 int hashCode()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void removePropertyChangeListener(java.lang.String sProperty, java.beans.PropertyChangeListener l)
           
abstract  void write(java.io.PrintWriter out)
          Writes this entry to the specified output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_sName

protected java.lang.String m_sName
Constructor Detail

Entry

protected Entry(WorkingDirectory workingDirectory)
Method Detail

getEntry

public static Entry getEntry(java.io.File file)
                      throws java.io.IOException,
                             CVSException
Gets the CVSEntry object for the specified file.

getEntry

public static Entry getEntry(java.lang.String file)
                      throws java.io.IOException,
                             CVSException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getName

public java.lang.String getName()
Gets the name of this entry.

getFile

public java.io.File getFile()
Gets the file that this entry represents.

getWorkingDirectory

public WorkingDirectory getWorkingDirectory()
Gets the working directory this entry belongs to.

getAbsoluteRepositoryPath

public java.lang.String getAbsoluteRepositoryPath()

write

public abstract void write(java.io.PrintWriter out)
Writes this entry to the specified output.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String sProperty,
                                      java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String sProperty,
                                         java.beans.PropertyChangeListener l)

firePropertyChange

protected void firePropertyChange(java.beans.PropertyChangeEvent e)

firePropertyChange

protected void firePropertyChange(java.lang.String sProperty,
                                  boolean oldValue,
                                  boolean newValue)

firePropertyChange

protected void firePropertyChange(java.lang.String sProperty,
                                  int oldValue,
                                  int newValue)

firePropertyChange

protected void firePropertyChange(java.lang.String sProperty,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)