站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

RevisionItem (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.versioning
Class RevisionItem

java.lang.Object
  extended byorg.netbeans.modules.vcscore.versioning.RevisionItem
All Implemented Interfaces:
Comparable, Node.Cookie, Serializable
Direct Known Subclasses:
NumDotRevisionItem

public abstract class RevisionItem
extends Object
implements Node.Cookie, Comparable, Serializable

The representation of a revision item.

See Also:
Serialized Form

Field Summary
protected  Vector branches
           
static String PROP_ADDITIONAL_PROPERTIES
           
static String PROP_AUTHOR
           
static String PROP_CURRENT_REVISION
           
static String PROP_DATE
           
static String PROP_DISPLAY_NAME
           
static String PROP_LOCKER
           
static String PROP_MESSAGE
           
static String PROP_REVISION
           
static String PROP_TAGS
           
 
Constructor Summary
RevisionItem(String revision)
          Creates new RevisionItem
 
Method Summary
 void addAdditionalPropertiesSet(String name, Map properties)
           
 void addProperty(String name, String value)
           
 void addPropertyChangeListener(PropertyChangeListener l)
           
 void addTagName(String tagName)
           
 int compareTo(Object p1)
           
protected abstract  int compareTo(RevisionItem item)
          Compare to another revision item.
protected  void firePropertyChange(String property, Object oldValue, Object newValue)
           
 Map getAdditionalProperties()
           
 String[] getAdditionalPropertiesSetNames()
           
 Map[] getAdditionalPropertiesSets()
           
 String getAuthor()
           
 String getDate()
           
 String getDisplayName()
           
 String getLocker()
           
 String getMessage()
           
 String getRevision()
          Get the revision of that item.
 String getRevisionVCS()
          Get the original VCS revision of that item.
 String[] getTagNames()
           
 int hashCode()
           
abstract  boolean isBranch()
          Find whether the current item represents a branch.
 boolean isCurrent()
           
abstract  boolean isDirectSubItemOf(RevisionItem item)
          Test whether the current item is a direct sub-item of the given item.
 boolean isRevision()
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 boolean removeTagName(String tagName)
           
 void setAuthor(String author)
           
 void setCurrent(boolean current)
           
 void setDate(String date)
           
 void setDisplayName(String displayName)
           
 void setLocker(String locker)
           
 void setMessage(String message)
           
 void setRevisionVCS(String revisionVCS)
           
 void setTagNames(String[] tagNames)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_REVISION

public static final String PROP_REVISION
See Also:
Constant Field Values

PROP_CURRENT_REVISION

public static final String PROP_CURRENT_REVISION
See Also:
Constant Field Values

PROP_DISPLAY_NAME

public static final String PROP_DISPLAY_NAME
See Also:
Constant Field Values

PROP_MESSAGE

public static final String PROP_MESSAGE
See Also:
Constant Field Values

PROP_DATE

public static final String PROP_DATE
See Also:
Constant Field Values

PROP_AUTHOR

public static final String PROP_AUTHOR
See Also:
Constant Field Values

PROP_LOCKER

public static final String PROP_LOCKER
See Also:
Constant Field Values

PROP_TAGS

public static final String PROP_TAGS
See Also:
Constant Field Values

PROP_ADDITIONAL_PROPERTIES

public static final String PROP_ADDITIONAL_PROPERTIES
See Also:
Constant Field Values

branches

protected Vector branches
Constructor Detail

RevisionItem

public RevisionItem(String revision)
Creates new RevisionItem

Method Detail

getRevision

public final String getRevision()
Get the revision of that item.


getRevisionVCS

public final String getRevisionVCS()
Get the original VCS revision of that item. That may differ from getRevision(), due to the fact, that odd-dotted denote revisions and even-dotted denote branches.


setRevisionVCS

public final void setRevisionVCS(String revisionVCS)

isRevision

public boolean isRevision()

isBranch

public abstract boolean isBranch()
Find whether the current item represents a branch.

Returns:
true when the current item represents a branch, false otherwise.

isDirectSubItemOf

public abstract boolean isDirectSubItemOf(RevisionItem item)
Test whether the current item is a direct sub-item of the given item. This method is used to constuct the revision children.

Parameters:
item - The item to test or null.

setDisplayName

public final void setDisplayName(String displayName)

getDisplayName

public final String getDisplayName()

setMessage

public final void setMessage(String message)

getMessage

public final String getMessage()

setDate

public final void setDate(String date)

getDate

public final String getDate()

setAuthor

public final void setAuthor(String author)

getAuthor

public final String getAuthor()

setLocker

public final void setLocker(String locker)

getLocker

public final String getLocker()

addTagName

public final void addTagName(String tagName)

removeTagName

public final boolean removeTagName(String tagName)

setTagNames

public final void setTagNames(String[] tagNames)

getTagNames

public final String[] getTagNames()

setCurrent

public final void setCurrent(boolean current)

isCurrent

public final boolean isCurrent()

addProperty

public final void addProperty(String name,
                              String value)

getAdditionalProperties

public final Map getAdditionalProperties()

addAdditionalPropertiesSet

public final void addAdditionalPropertiesSet(String name,
                                             Map properties)

getAdditionalPropertiesSetNames

public final String[] getAdditionalPropertiesSetNames()

getAdditionalPropertiesSets

public final Map[] getAdditionalPropertiesSets()

compareTo

protected abstract int compareTo(RevisionItem item)
Compare to another revision item. See Comparable.compareTo(java.lang.Object) for the contract definition.


hashCode

public int hashCode()

compareTo

public int compareTo(Object p1)
Specified by:
compareTo in interface Comparable

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener l)

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener l)

firePropertyChange

protected final void firePropertyChange(String property,
                                        Object oldValue,
                                        Object newValue)

toString

public String toString()

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.