|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.versioning.RevisionItem
The representation of a revision item.
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 |
public static final String PROP_REVISION
public static final String PROP_CURRENT_REVISION
public static final String PROP_DISPLAY_NAME
public static final String PROP_MESSAGE
public static final String PROP_DATE
public static final String PROP_AUTHOR
public static final String PROP_LOCKER
public static final String PROP_TAGS
public static final String PROP_ADDITIONAL_PROPERTIES
protected Vector branches
Constructor Detail |
public RevisionItem(String revision)
Method Detail |
public final String getRevision()
public final String getRevisionVCS()
public final void setRevisionVCS(String revisionVCS)
public boolean isRevision()
public abstract boolean isBranch()
true
when the current item represents a branch,
false
otherwise.public abstract boolean isDirectSubItemOf(RevisionItem item)
item
- The item to test or null
.public final void setDisplayName(String displayName)
public final String getDisplayName()
public final void setMessage(String message)
public final String getMessage()
public final void setDate(String date)
public final String getDate()
public final void setAuthor(String author)
public final String getAuthor()
public final void setLocker(String locker)
public final String getLocker()
public final void addTagName(String tagName)
public final boolean removeTagName(String tagName)
public final void setTagNames(String[] tagNames)
public final String[] getTagNames()
public final void setCurrent(boolean current)
public final boolean isCurrent()
public final void addProperty(String name, String value)
public final Map getAdditionalProperties()
public final void addAdditionalPropertiesSet(String name, Map properties)
public final String[] getAdditionalPropertiesSetNames()
public final Map[] getAdditionalPropertiesSets()
protected abstract int compareTo(RevisionItem item)
Comparable.compareTo(java.lang.Object)
for the contract definition.
public int hashCode()
public int compareTo(Object p1)
compareTo
in interface Comparable
public final void addPropertyChangeListener(PropertyChangeListener l)
public final void removePropertyChangeListener(PropertyChangeListener l)
protected final void firePropertyChange(String property, Object oldValue, Object newValue)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |