|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wvcm.ResourceImpl
org.apache.wvcm.VersionImpl
public class VersionImpl
Implementation of Version.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wvcm.ResourceImpl |
---|
ResourceImpl.LoadedProperties, ResourceImpl.XmlPropertyValue |
Nested classes/interfaces inherited from interface javax.wvcm.Version |
---|
Version.Fork |
Nested classes/interfaces inherited from interface javax.wvcm.Resource |
---|
Resource.GenericResourceImpl |
Field Summary |
---|
Fields inherited from class org.apache.wvcm.ResourceImpl |
---|
dnsp, MISSING_PROPERTY_VALUE |
Constructor Summary | |
---|---|
VersionImpl(Location location)
Constructor |
Method Summary | |
---|---|
void |
doAddLabel(java.lang.String label)
Add the specified label to this Version . |
void |
doRemoveLabel(java.lang.String label)
Removes the specified label from this Version . |
void |
doSetLabel(java.lang.String label)
Set the specified label on this Version . |
java.util.List |
getActivityList()
Return a list of Activity objects that identify the
activities to which this Version contributes, and on which
lines of descent this version appears. |
int |
getCheckinFork()
Return the CheckinFork property, which determines whether this Version can be given more than one successor. |
int |
getCheckoutFork()
Return the CheckoutFork property, which determines whether a version-controlled resource selecting this Version
can be checked out when it already has a successor version. |
java.util.List |
getCheckoutList()
Return a list of ControllableResource objects
that identify the checked-out version-controlled
resources that refer to this Version in their CheckedOut property. |
java.util.List |
getLabelNameList()
Return a list of String objects that identify labels that currently select this Version . |
java.util.List |
getPredecessorList()
Return a list of Version objects that identify
the predecessors of this Version . |
java.util.List |
getSuccessorList()
Return a list of Version objects that identify
the versions that are the successors of this Version . |
VersionHistory |
getVersionHistory()
Return the version history resource that contains this Version . |
java.lang.String |
getVersionName()
Return the version name of this Version . |
void |
setActivityList(java.util.List activityList)
Set the ActivityList property. |
void |
setCheckinFork(int val)
Set the CheckinFork property. |
void |
setCheckoutFork(int val)
Set the CheckoutFork property. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionImpl(Location location)
Method Detail |
---|
public void doSetLabel(java.lang.String label) throws WvcmException
Version
.
If the label is already on another version in the same version history,
the label is removed from that other version.
label
- The label to set.
WvcmException
public java.util.List getCheckoutList() throws WvcmException
ControllableResource
objects
that identify the checked-out version-controlled
resources that refer to this Version
in their CheckedOut property.
getCheckoutList
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.CHECKOUT_LIST
as a wanted property.ControllableResource.getCheckedOut
public VersionHistory getVersionHistory() throws WvcmException
Version
.
getVersionHistory
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.VERSION_HISTORY
as a wanted property.public void setActivityList(java.util.List activityList)
setActivityList
in interface Version
activityList
- A list of Activity
objects that specify
the new ActivityList property for this Version
.public java.util.List getLabelNameList() throws WvcmException
Version
.
getLabelNameList
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.LABEL_NAME_LIST
as a wanted property.public void setCheckoutFork(int val)
setCheckoutFork
in interface Version
val
- The new CheckoutFork value for this Version
.public java.util.List getSuccessorList() throws WvcmException
Version
objects that identify
the versions that are the successors of this Version
.
getSuccessorList
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.SUCCESSOR_LIST
as a wanted property.public java.lang.String getVersionName() throws WvcmException
Version
.
getVersionName
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.VERSION_NAME
as a wanted property.public void doRemoveLabel(java.lang.String label) throws WvcmException
Version
.
label
- The label to remove.
WvcmException
public void doAddLabel(java.lang.String label) throws WvcmException
Version
.
label
- The label to add.
WvcmException
public int getCheckinFork() throws WvcmException
Version
can be given more than one successor.
getCheckinFork
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.CHECKIN_FORK
as a wanted property.public java.util.List getPredecessorList() throws WvcmException
Version
objects that identify
the predecessors of this Version
.
getPredecessorList
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.PREDECESSOR_LIST
as a wanted property.public void setCheckinFork(int val)
setCheckinFork
in interface Version
val
- The new CheckinFork value for this Version
.public int getCheckoutFork() throws WvcmException
Version
can be checked out when it already has a successor version.
getCheckoutFork
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.CHECKOUT_FORK
as a wanted property.public java.util.List getActivityList() throws WvcmException
Activity
objects that identify the
activities to which this Version
contributes, and on which
lines of descent this version appears.
getActivityList
in interface Version
WvcmException
- if this Version
was not created with
PropertyName.ACTIVITY_LIST
as a wanted property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |