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

NumDotRevisionItem (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.versioning.impl
Class NumDotRevisionItem

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

public class NumDotRevisionItem
extends RevisionItem

The revision item that represents revisions of the form x.y where even number of dots represents branches and odd represents revisions.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.netbeans.modules.vcscore.versioning.RevisionItem
branches, PROP_ADDITIONAL_PROPERTIES, PROP_AUTHOR, PROP_CURRENT_REVISION, PROP_DATE, PROP_DISPLAY_NAME, PROP_LOCKER, PROP_MESSAGE, PROP_REVISION, PROP_TAGS
 
Constructor Summary
NumDotRevisionItem(String revision)
          Creates new RevisionItem
 
Method Summary
protected  int compareTo(RevisionItem item)
          Compare to another revision item.
 boolean isBranch()
          Find whether the current item represents a branch.
 boolean isDirectSubItemOf(RevisionItem item)
          Test whether the current item is a direct sub-item of the given item.
static int numDots(String str)
           
 
Methods inherited from class org.netbeans.modules.vcscore.versioning.RevisionItem
addAdditionalPropertiesSet, addProperty, addPropertyChangeListener, addTagName, compareTo, firePropertyChange, getAdditionalProperties, getAdditionalPropertiesSetNames, getAdditionalPropertiesSets, getAuthor, getDate, getDisplayName, getLocker, getMessage, getRevision, getRevisionVCS, getTagNames, hashCode, isCurrent, isRevision, removePropertyChangeListener, removeTagName, setAuthor, setCurrent, setDate, setDisplayName, setLocker, setMessage, setRevisionVCS, setTagNames, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumDotRevisionItem

public NumDotRevisionItem(String revision)
Creates new RevisionItem

Method Detail

isBranch

public boolean isBranch()
Description copied from class: RevisionItem
Find whether the current item represents a branch.

Specified by:
isBranch in class RevisionItem
Returns:
true when the current item represents a branch, false otherwise.

numDots

public static int numDots(String str)

isDirectSubItemOf

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

Specified by:
isDirectSubItemOf in class RevisionItem
Parameters:
item - The item to test or null.

compareTo

protected int compareTo(RevisionItem item)
Description copied from class: RevisionItem
Compare to another revision item. See Comparable.compareTo(java.lang.Object) for the contract definition.

Specified by:
compareTo in class RevisionItem

 

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