pnever      2004/07/02 05:42:27

  Modified:    proposals/wvcm/src/javax/wvcm WvcmException.java
  Log:
  Can now call toString() for each ReasinCode constant.
  
  Revision  Changes    Path
  1.7       +290 -290  jakarta-slide/proposals/wvcm/src/javax/wvcm/WvcmException.java
  
  Index: WvcmException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/proposals/wvcm/src/javax/wvcm/WvcmException.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WvcmException.java        8 Dec 2003 17:14:24 -0000       1.6
  +++ WvcmException.java        2 Jul 2004 12:42:27 -0000       1.7
  @@ -12,640 +12,640 @@
    */
   public class WvcmException extends Exception {
       
  -    public static final class ReasonCode {
  +    public static class ReasonCode {
           
           /** The provider suffered an I/O failure, the operation may be retried. */
           public static final ReasonCode READ_FAILED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "READ_FAILED";}};
  +
           /** The provider suffered an I/O failure, the operation may be retried. */
           public static final ReasonCode WRITE_FAILED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "WRITE_FAILED";}};
  +
           /** The property value is unavailable because it was not in the property 
name
            * list when the proxy was created. */
           public static final ReasonCode VALUE_UNAVAILABLE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"VALUE_UNAVAILABLE";}};
  +
           /** The property value is maintained only on the server and so is not 
available
            * locally. */
           public static final ReasonCode VALUE_UNAVAILABLE_LOCALLY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"VALUE_UNAVAILABLE_LOCALLY";}};
  +
           /** The requested property does not exist on the persistent resource. */
           public static final ReasonCode PROPERTY_MISSING
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"PROPERTY_MISSING";}};
  +
           /** The resource has no content. */
           public static final ReasonCode NO_CONTENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "NO_CONTENT";}};
  +
           /** The resource has no content stored locally. */
           public static final ReasonCode NO_LOCAL_CONTENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"NO_LOCAL_CONTENT";}};
  +
           /** The property value update would overwrite an earlier change. */
           public static final ReasonCode PROPERTY_OVERWRITE_FORBIDDEN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"PROPERTY_OVERWRITE_FORBIDDEN";}};
  +
           /** The user is not authorized to execute the attempted operation.*/
           public static final ReasonCode UNAUTHORIZED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "UNAUTHORIZED";}};
  +
           /** The provider was unable to complete the operation for an unspecified 
reason. */
           public static final ReasonCode FORBIDDEN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "FORBIDDEN";}};
  +
           /** The corresponding remote resource no longer exists or was never 
created. */
           public static final ReasonCode NOT_FOUND
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "NOT_FOUND";}};
  +
           /** The operation cannot be performed due to a conflict with resource 
state. */
           public static final ReasonCode CONFLICT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "CONFLICT";}};
  +
           /** The server workspace location is required to perform the operation. */
           public static final ReasonCode WORKSPACE_SERVER_LOCATION_UNDEFINED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"WORKSPACE_SERVER_LOCATION_UNDEFINED";}};
  +
           /** <code>Precondition:</code> Resource specified was not an activity. */
           public static final ReasonCode NOT_AN_ACTIVITY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "NOT_AN_ACTIVITY";}};
  +
           /** <code>Postcondition:</code> The operation failed to delete all versions 
in the version set. */
           public static final ReasonCode CANNOT_DELETE_VERSION_LIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_DELETE_VERSION_LIST";}};
  +
           /** <code>Postcondition:</code> Failed to initialize the bindings in the 
folder. */
           public static final ReasonCode CANNOT_INITIALIZE_BINDINGS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_INITIALIZE_BINDINGS";}};
  +
           /** <code>Precondition:</code> This folder already has a controlled 
configuration. */
           public static final ReasonCode CONTROLLED_CONFIGURATION_ALREADY_EXISTS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CONTROLLED_CONFIGURATION_ALREADY_EXISTS";}};
  +
           /** <code>Postcondition:</code> Failed to create a new controlled 
configuration. */
           public static final ReasonCode CANNOT_CREATE_CONTROLLED_CONFIGURATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_CONTROLLED_CONFIGURATION";}};
  +
           /** <code>Postcondition:</code> Failed to create reference to a new 
controlled configuration. */
           public static final ReasonCode CANNOT_REFERENCE_CONTROLLED_CONFIGURATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_REFERENCE_CONTROLLED_CONFIGURATION";}};
  +
           /** <code>Postcondition:</code> The new version could not be added to the 
version history. */
           public static final ReasonCode CANNOT_ADD_TO_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_ADD_TO_HISTORY";}};
  +
           /** <code>Postcondition:</code> he workspace could not be deleted because 
members still reference it. */
           public static final ReasonCode CANNOT_DELETE_WORKSPACE_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_DELETE_WORKSPACE_MEMBERS";}};
  +
           /** <code>Precondition:</code> A version resource cannot be renamed. */
           public static final ReasonCode CANNOT_RENAME_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_RENAME_VERSION";}};
  +
           /** <code>Postcondition:</code> The specified properties cannot be 
reported. */
           public static final ReasonCode CANNOT_REPORT_PROPERTIES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_REPORT_PROPERTIES";}};
  +
           /** <code>Postcondition:</code> The activity set of the checked-out 
resource could not be initialized. */
           public static final ReasonCode CANNOT_INITIALIZE_ACTIVITY_LIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_INITIALIZE_ACTIVITY_LIST";}};
  +
           /** <code>Precondition:</code> A fork in the version tree is not allowed. */
           public static final ReasonCode CANNOT_FORK
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "CANNOT_FORK";}};
  +
           /** <code>Postcondition:</code> The folders controlled configuration 
property could not be set. */
           public static final ReasonCode CANNOT_SET_CONTROLLED_CONFIGURATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_SET_CONTROLLED_CONFIGURATION";}};
  +
           /** <code>Postcondition:</code> The uncheckout operation could not restore 
content and properties. */
           public static final ReasonCode CANNOT_RESTORE_CONTENT_AND_DEAD_PROPERTIES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_RESTORE_CONTENT_AND_DEAD_PROPERTIES";}};
  +
           /** <code>Precondition:</code> The members of a baseline folder cannot be 
modified. */
           public static final ReasonCode CANNOT_UPDATE_BASELINE_FOLDER
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_BASELINE_FOLDER";}};
  +
           /** <code>Precondition:</code> A baseline controlled folder already exists 
in this workspace for this baseline history. */
           public static final ReasonCode 
CANNOT_HAVE_MULTIPLE_BASELINE_CONTROLLED_FOLDERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_HAVE_MULTIPLE_BASELINE_CONTROLLED_FOLDERS";}};
  +
           /** <code>Precondition:</code> Cannot create this resource at the specified 
location. */
           public static final ReasonCode CANNOT_CREATE_AT_THIS_LOCATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_AT_THIS_LOCATION";}};
  +
           /** <code>Postcondition:</code> Update of the merge set or auto merge set 
properties failed. */
           public static final ReasonCode CANNOT_UPDATE_MERGE_LIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_MERGE_LIST";}};
  +
           /** <code>Precondition:</code> Cannot modify the properties of a checked-in 
resource. */
           public static final ReasonCode CANNOT_MODIFY_CONTROLLED_PROPERTY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_CONTROLLED_PROPERTY";}};
  +
           /**
            * <code>Precondition:</code> Failed to checkin this resource because auto 
update does not
            * reference a controlled resource whose checked-in version is not the
            * same as, or a predecessor of this resource. */
           public static final ReasonCode CANNOT_OVERWRITE_BY_AUTO_UPDATE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_OVERWRITE_BY_AUTO_UPDATE";}};
  +
           /** <code>Precondition:</code> Failed to perform the merge because the 
target could not be checked-out. */
           public static final ReasonCode CANNOT_MERGE_CHECKOUT_NOT_ALLOWED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MERGE_CHECKOUT_NOT_ALLOWED";}};
  +
           /** <code>Postcondition:</code> Failed to create working resource. */
           public static final ReasonCode CANNOT_CREATE_WORKING_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_WORKING_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Failed to checkin the folder version. */
           public static final ReasonCode CANNOT_CONTROL_FOLDER_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CONTROL_FOLDER_MEMBERS";}};
  +
           /** <code>Precondition:</code> Cannot modify the content of a checked-in 
resource. */
           public static final ReasonCode CANNOT_MODIFY_CONTROLLED_CONTENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_CONTROLLED_CONTENT";}};
  +
           /** <code>Precondition:</code> A version history cannot be renamed. */
           public static final ReasonCode CANNOT_RENAME_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_RENAME_HISTORY";}};
  +
           /** <code>Postcondition:</code> A vesioning property was copied to the 
destination. */
           public static final ReasonCode VERSIONING_PROPERTY_COPIED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"VERSIONING_PROPERTY_COPIED";}};
  +
           /** <code>Postcondition:</code> Failed to checkin all checked-out resources 
in the activity checkout set. */
           public static final ReasonCode CANNOT_CHECKIN_ACTIVITY_RESOURCES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKIN_ACTIVITY_RESOURCES";}};
  +
           /** <code>Postcondition:</code> Operation failed because references to the 
resource could not be updated. */
           public static final ReasonCode CANNOT_UPDATE_CHECKED_OUT_REFERENCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_CHECKED_OUT_REFERENCE";}};
  +
           /** <code>Precondition:</code> Operation failed because the resource passed 
in was not a baseline. */
           public static final ReasonCode NOT_A_BASELINE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "NOT_A_BASELINE";}};
  +
           /**
            * <code>Precondition:</code> Failed to checkout the resource because a 
descendent exists and forking
            * is forbidden.
            */
           public static final ReasonCode CANNOT_CHECKOUT_FORKING_IS_FORBIDDEN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKOUT_FORKING_IS_FORBIDDEN";}};
  +
           /**
            * <code>Precondition:</code> Failed to checkout resource because multiple 
checkout is discouraged
            * and the caller did not specify fork-ok.
            */
           public static final ReasonCode CANNOT_CHECKOUT_MULTI_CHECKOUT_IS_DISCOURAGED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKOUT_MULTI_CHECKOUT_IS_DISCOURAGED";}};
  +
           /** <code>Postcondition:</code> Failed to move a resource into a new 
workspace. */
           public static final ReasonCode CANNOT_MOVE_INTO_WORKSPACE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MOVE_INTO_WORKSPACE";}};
  +
           /** <code>Postcondition:</code> Deleting a version failed to update the 
root of the version history. */
           public static final ReasonCode CANNOT_UPDATE_VERSION_HISTORY_ROOT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_VERSION_HISTORY_ROOT";}};
  +
           /** <code>Precondition:</code> Failed to retrieve a property that should be 
supported. */
           public static final ReasonCode CANNOT_RETRIEVE_SUPPORTED_PROPERTY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_RETRIEVE_SUPPORTED_PROPERTY";}};
  +
           /** <code>Precondition:</code> Checkout of an already checked-out resource 
is forbidden. */
           public static final ReasonCode CANNOT_CHECKOUT_MULTI_CHECKOUT_IS_FORBIDDEN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKOUT_MULTI_CHECKOUT_IS_FORBIDDEN";}};
  +
           /** <code>Postcondition:</code> Checkout failed to initialize the 
predecessor set of the checked-out resource. */
           public static final ReasonCode CANNOT_INITIALIZE_PREDECESSOR_LIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_INITIALIZE_PREDECESSOR_LIST";}};
  +
           /** <code>Postcondition:</code> Unlock failed to automatically checkin the 
resource. */
           public static final ReasonCode AUTO_CHECKIN_FAILED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"AUTO_CHECKIN_FAILED";}};
  +
           /** <code>Precondition:</code> Cannot remove the specified label because it 
does not used by this resource. */
           public static final ReasonCode CANNOT_REMOVE_LABEL_DOES_NOT_EXIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_REMOVE_LABEL_DOES_NOT_EXIST";}};
  +
           /** <code>Precondition:</code> Report failed because a resource specified 
was not a version history. */
           public static final ReasonCode BAD_VERSION_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"BAD_VERSION_HISTORY";}};
  +
           /** <code>Postcondition:</code> Workspace was moved but references to it 
failed to be updated. */
           public static final ReasonCode CANNOT_UPDATE_WORKSPACE_REFERENCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_WORKSPACE_REFERENCE";}};
  +
           /** <code>Precondition:</code> Cannot checkin since it would cause a fork 
and forking is discouraged */
           public static final ReasonCode CANNOT_CHECKIN_FORK_DISCOURAGED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKIN_FORK_DISCOURAGED";}};
  +
           /** <code>Postcondition:</code> Controlled folder was updated but members 
failed to be updated. */
           public static final ReasonCode CANNOT_UPDATE_CONTROLLED_FOLDER_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_CONTROLLED_FOLDER_MEMBERS";}};
  +
           /** <code>Postcondition:</code> Checkin of a controlled configuration 
failed to create a new baseline folder. */
           public static final ReasonCode CANNOT_CREATE_BASELINE_FOLDER
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_BASELINE_FOLDER";}};
  +
           /** <code>Postcondition:</code> Failed to preserve the properties when 
moving a resource. */
           public static final ReasonCode CANNOT_PRESERVE_VERSIONING_PROPERTIES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_PRESERVE_VERSIONING_PROPERTIES";}};
  +
           /** <code>Postcondition:</code> Failed to merge baseline. */
           public static final ReasonCode CANNOT_MERGE_BASELINE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MERGE_BASELINE";}};
  +
           /** <code>Postcondition:</code> Failed to put the resource under control. */
           public static final ReasonCode CANNOT_PUT_UNDER_CONTROL
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_PUT_UNDER_CONTROL";}};
  +
           /** <code>Precondition:</code> Delete failed because you cannot delete a 
version. */
           public static final ReasonCode CANNOT_DELETE_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_DELETE_VERSION";}};
  +
           /** <code>Postcondition:</code> Adding or setting the specified label 
failed. */
           public static final ReasonCode CANNOT_ADD_OR_SET_LABEL
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_ADD_OR_SET_LABEL";}};
  +
           /** <code>Precondition:</code> Uncheckout failed, resource was not a 
checked-out controlled resource. */
           public static final ReasonCode CANNOT_UNCHECKOUT_NOT_CHECKED_OUT_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UNCHECKOUT_NOT_CHECKED_OUT_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Cannot correctly set the members of the 
baseline controlled folder. */
           public static final ReasonCode CANNOT_SET_BASELINE_CONTROLLED_FOLDER_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_SET_BASELINE_CONTROLLED_FOLDER_MEMBERS";}};
  +
           /** <code>Precondition:</code> resource specified must be a version. */
           public static final ReasonCode BAD_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "BAD_VERSION";}};
  +
           /**
            * <code>Precondition:</code> Failed to modify content/properties because 
the resource specified
            * was a version.
            */
           public static final ReasonCode CANNOT_MODIFY_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_VERSION";}};
  +
           /**
            * <code>Precondition:</code> The operation failed because the server does 
not allow
            * compare/merge of baselines from different baseline histories.
            */
           public static final ReasonCode BASELINES_FROM_SAME_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"BASELINES_FROM_SAME_HISTORY";}};
  +
           /**
            * <code>Precondition:</code> Activity cannot be checked-in because checkin 
of all
            * referenced resources failed.
            */
           public static final ReasonCode CANNOT_CHECKIN_ALL_RESOURCES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKIN_ALL_RESOURCES";}};
  +
           /** <code>Precondition:</code> Failed to move because the resource to be 
moved is a working resource. */
           public static final ReasonCode CANNOT_RENAME_WORKING_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_RENAME_WORKING_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Failed to create a new controlled resource. 
*/
           public static final ReasonCode CANNOT_CREATE_NEW_CONTROLLED_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_NEW_CONTROLLED_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Baseline control failed to create members 
or set properties. */
           public static final ReasonCode CANNOT_SELECT_EXISTING_BASELINE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_SELECT_EXISTING_BASELINE";}};
  +
           /** <code>Precondition:</code> Creating a resource failed because a 
resource already exists at the specified location. */
           public static final ReasonCode RESOURCE_ALREADY_EXISTS_AT_LOCATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"RESOURCE_ALREADY_EXISTS_AT_LOCATION";}};
  +
           /** <code>Postcondition:</code> The report failed because it modified 
resources properties. */
           public static final ReasonCode CANNOT_MODIFY_PROPERTIES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_PROPERTIES";}};
  +
           /** <code>Postcondition:</code> The operation failed to modify the resource 
because auto checkout failed. */
           public static final ReasonCode CANNOT_AUTO_CHECKOUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_AUTO_CHECKOUT";}};
  +
           /** <code>Precondition:</code> Failed to checkout because descendent 
already exists and forking is discouraged. */
           public static final ReasonCode 
CHECKOUT_OF_VERSION_WITH_DESCENDANT_IS_DISCOURAGED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CHECKOUT_OF_VERSION_WITH_DESCENDANT_IS_DISCOURAGED";}};
  +
           public static final ReasonCode CANNOT_UPDATE_ACTIVITY_REFERENCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_ACTIVITY_REFERENCE";}};
  +
           /**
            * <code>Precondition:</code> Cannot checkin because the resources 
predecessors are not descendents
            * of the root of the version history.
            */
           public static final ReasonCode VERSION_HISTORY_IS_NOT_TREE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"VERSION_HISTORY_IS_NOT_TREE";}};
  +
           /**
            * <code>Precondition:</code> Label failed to select a version in the 
history of the
            * specified controlled resource.
            */
           public static final ReasonCode MUST_SELECT_VERSION_IN_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"MUST_SELECT_VERSION_IN_HISTORY";}};
  +
           /** <code>Precondition:</code> Failed because the resource specified is a 
folder version. */
           public static final ReasonCode CANNOT_COPY_FOLDER_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_COPY_FOLDER_VERSION";}};
  +
           /** <code>Postcondition:</code> Update failed to set content and properties 
correctly. */
           public static final ReasonCode CANNOT_UPDATE_CONTENT_AND_PROPERTIES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_CONTENT_AND_PROPERTIES";}};
  +
           /** <code>Precondition:</code> baseline control failed because the folder 
already has controlled resources. */
           public static final ReasonCode CANNOT_HAVE_CONTROLLED_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_HAVE_CONTROLLED_MEMBERS";}};
  +
           /** <code>Postcondition:</code> The operation changed an existing 
controlled resource. */
           public static final ReasonCode CANNOT_CHANGE_EXISTING_CHECKED_IN_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHANGE_EXISTING_CHECKED_IN_OUT";}};
  +
           /** <code>Postcondition:</code> Target version is an ancestor of the source 
but update failed. */
           public static final ReasonCode CANNOT_UPDATE_DESCENDANT_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_DESCENDANT_VERSION";}};
  +
           /** <code>Postcondition:</code> Rebind failed to update references to the 
resource in auto update properties. */
           public static final ReasonCode CANNOT_UPDATE_AUTO_UPDATE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_AUTO_UPDATE";}};
  +
           /** <code>Precondition:</code> Copy failed because you cannot copy a 
history resource. */
           public static final ReasonCode CANNOT_COPY_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_COPY_HISTORY";}};
  +
           /** <code>Postcondition:</code> Checkout operation failed to checkout the 
controlled resource. */
           public static final ReasonCode CANNOT_CHECK_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECK_OUT";}};
  +
           /**
            * <code>Precondition:</code> The operation failed because it would result 
in more than one controlled
            * resource for this version history in a workspace.
            * */
           public static final ReasonCode 
ONE_CONTROLLED_RESOURCE_PER_HISTORY_PER_WORKSPACE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"ONE_CONTROLLED_RESOURCE_PER_HISTORY_PER_WORKSPACE";}};
  +
           public static final ReasonCode INITIALIZE_CONTROLLED_BINDINGS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"INITIALIZE_CONTROLLED_BINDINGS";}};
  +
           /**
            * <code>Postcondition:</code> Update request failed because member of 
baseline controlled folder
            * could not be updated.
            */
           public static final ReasonCode CANNOT_MODIFY_CONFIGURATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_CONFIGURATION";}};
  +
           /** <code>Precondition:</code> Update failed because members of the 
controlled configuration are checked-out. */
           public static final ReasonCode CANNOT_UPDATE_MEMBERS_ARE_CHECKED_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_MEMBERS_ARE_CHECKED_OUT";}};
  +
           /**
            * <code>Postcondition:</code> Operation could not be carried out on the 
version
            * identified by the specified label.
            */
           public static final ReasonCode APPLY_REQUEST_TO_LABELED_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"APPLY_REQUEST_TO_LABELED_VERSION";}};
  +
           /** <code>Postcondition:</code> Unbind failed to remove all outstanding 
merge references to the resource. */
           public static final ReasonCode CANNOT_DELETE_VERSION_REFERENCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_DELETE_VERSION_REFERENCE";}};
  +
           public static final ReasonCode CANNOT_MERGE_SUB_BASELINES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MERGE_SUB_BASELINES";}};
  +
           /** <code>Precondition:</code> Merge failed because source identified or 
contains a checked-out resource. */
           public static final ReasonCode CANNOT_MERGE_CHECKED_OUT_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MERGE_CHECKED_OUT_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Uncheckout failed to reset the state of the 
controlled resource. */
           public static final ReasonCode CANNOT_CANCEL_CHECKED_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CANCEL_CHECKED_OUT";}};
  +
           /** <code>Postcondition:</code> Unbind failed to update the predecessor set 
of the version history. */
           public static final ReasonCode CANNOT_UPDATE_PREDECESSOR_LIST
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_PREDECESSOR_LIST";}};
  +
           /**
            * <code>Precondition:</code> Failed because more than one version of this 
resource is referenced
            * in the specified activity.
            */
           public static final ReasonCode ONE_CHECKOUT_PER_ACTIVITY_PER_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"ONE_CHECKOUT_PER_ACTIVITY_PER_HISTORY";}};
  +
           /** <code>Precondition:</code> The operation failed because the resource 
must be in the checked-in state. */
           public static final ReasonCode MUST_BE_CHECKED_IN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"MUST_BE_CHECKED_IN";}};
  +
           /** <code>Precondition:</code> Could not update all resources matching the 
depth header. */
           public static final ReasonCode CANNOT_DEPTH_UPDATE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_DEPTH_UPDATE";}};
  +
           /** <code>Postcondition:</code> The resource could not be checked-in. */
           public static final ReasonCode CANNOT_CHECK_IN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "CANNOT_CHECK_IN";}};
  +
           /** <code>Precondition:</code> The operation failed because the resource 
must first be checked-out. */
           public static final ReasonCode MUST_BE_CHECKED_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"MUST_BE_CHECKED_OUT";}};
  +
           /**
            * <code>Postcondition:</code> Cannot unbind activity because references to 
the activity could
            * not be deleted.
            */
           public static final ReasonCode CANNOT_UNBIND_ACTIVITY_REFERENCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UNBIND_ACTIVITY_REFERENCE";}};
  +
           /** <code>Precondition:</code> The resource being checked-in is in the 
process of being merged. */
           public static final ReasonCode CANNOT_CHECKIN_MERGE_NOT_COMPLETE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKIN_MERGE_NOT_COMPLETE";}};
  +
           /** <code>Precondition:</code> Each version in an activity for a given 
version history
            * must be on the same line of descent. */
           public static final ReasonCode CANNOT_CREATE_BRANCH_IN_ACTIVITY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_BRANCH_IN_ACTIVITY";}};
  +
           /**
            * <code>Precondition:</code> The operation failed because the resource is 
a member of a
            * checked-in controlled configuration and auto versioning is not enabled.
            */
           public static final ReasonCode CANNOT_MODIFY_CONTROLLED_CONFIGURATION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_CONTROLLED_CONFIGURATION";}};
  +
           /**
            * <code>Precondition:</code> Cannot checkin the controlled configuration 
because more than one
            * member exists for a given version history.
            */
           public static final ReasonCode ONE_VERSION_PER_HISTORY_PER_BASELINE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"ONE_VERSION_PER_HISTORY_PER_BASELINE";}};
  +
           public static final ReasonCode CANNOT_CREATE_NEW_VERSION_HISTORY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_NEW_VERSION_HISTORY";}};
  +
           /** <code>Postcondition:</code> Copy failed to create new resource when 
copying a controlled resource. */
           public static final ReasonCode CANNOT_CREATE_NEW_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_NEW_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Merge modified an ancestor of the merge 
source. */
           public static final ReasonCode CANNOT_MERGE_ANCESTOR_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MERGE_ANCESTOR_VERSION";}};
  +
           /** <code>Postcondition:</code> Checkin failed to update a controlled 
resource specified in the auto update property. */
           public static final ReasonCode CANNOT_AUTO_UPDATE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_AUTO_UPDATE";}};
  +
           /** <code>Postcondition:</code> Target needed to be checked-out for merge 
but it failed. */
           public static final ReasonCode CANNOT_CHECKOUT_FOR_MERGE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKOUT_FOR_MERGE";}};
  +
           public static final ReasonCode CANNOT_KEEP_CHECKED_OUT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_KEEP_CHECKED_OUT";}};
  +
           /** <code>Precondition:</code> The label is already in use by this 
resource. */
           public static final ReasonCode ADD_MUST_BE_NEW_LABEL
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"ADD_MUST_BE_NEW_LABEL";}};
  +
           /**
            * <code>Precondition:</code> Operation failed to modify a resource because 
it's parent folder is a
            * checked-in controlled folder.
            */
           public static final ReasonCode CANNOT_MODIFY_CHECKED_IN_PARENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_CHECKED_IN_PARENT";}};
  +
           /**
            * <code>Precondition:</code> Failed to checkin the controlled 
configuration because some of it's
            * members are still checked-out.
            */
           public static final ReasonCode 
NO_CHECKED_OUT_BASELINE_CONTROLLED_FOLDER_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"NO_CHECKED_OUT_BASELINE_CONTROLLED_FOLDER_MEMBERS";}};
  +
           /** <code>Precondition:</code> Operation failed because it attempted to set 
a protected property. */
           public static final ReasonCode CANNOT_MODIFY_PROTECTED_PROPERTY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_PROTECTED_PROPERTY";}};
  +
           /** <code>Postcondition:</code> Update failed to correctly set the 
checked-in property of controlled configurations. */
           public static final ReasonCode CANNOT_UPDATE_SUB_BASELINES
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_SUB_BASELINES";}};
  +
           /** <code>Precondition:</code> Rebind failed because the destination is a 
checked-in controlled folder. */
           public static final ReasonCode CANNOT_MODIFY_DESTINATION_CHECKED_IN_PARENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MODIFY_DESTINATION_CHECKED_IN_PARENT";}};
  +
           /** <code>Postcondition:</code> Workspace was moved but failed to update 
all references to the workspace. */
           public static final ReasonCode CANNOT_MOVE_WORKSPACE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_MOVE_WORKSPACE";}};
  +
           /** <code>Postcondition:</code> The request to modify the resource failed 
to auto checkout and checkin the resource. */
           public static final ReasonCode CANNOT_AUTO_CHECKOUT_CHECKIN
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_AUTO_CHECKOUT_CHECKIN";}};
  +
           /** <code>Postcondition:</code> Baseline control failed to create a new 
baseline. */
           public static final ReasonCode CANNOT_CREATE_NEW_BASELINE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_NEW_BASELINE";}};
  +
           /** <code>Postcondition:</code> Failed to remove label from the specified 
resource. */
           public static final ReasonCode CANNOT_REMOVE_LABEL
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_REMOVE_LABEL";}};
  +
           /** <code>Precondition:</code> Request failed because both a label and 
apply to version were specified. */
           public static final ReasonCode CANNOT_HAVE_LABEL_AND_APPLY_TO_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_HAVE_LABEL_AND_APPLY_TO_VERSION";}};
  +
           /** <code>Postcondition:</code> Failed to create a working resource based 
on checked-in resource. */
           public static final ReasonCode CANNOT_APPLY_TO_CHECKED_IN_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_APPLY_TO_CHECKED_IN_VERSION";}};
  +
           /** <code>Postcondition:</code> Checkin failed to create a new version. */
           public static final ReasonCode CANNOT_CREATE_VERSION
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_VERSION";}};
  +
           /** <code>Precondition:</code> Report failed since the resource does not 
support the specified report. */
           public static final ReasonCode BAD_REPORT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return "BAD_REPORT";}};
  +
           /** <code>Postcondition:</code> Failed to unbind the resource. */
           public static final ReasonCode CANNOT_UNBIND_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UNBIND_RESOURCE";}};
  +
           /** <code>Postcondition:</code> Failed to checkin all checked-out resources 
in the activity checkout set. */
           public static final ReasonCode CANNOT_CHECKIN_ACTIVITY
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CHECKIN_ACTIVITY";}};
  +
           /** <code>Postcondition:</code> Could not set the unreserved property of 
the resource. */
           public static final ReasonCode CANNOT_INITIALIZE_UNRESERVED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_INITIALIZE_UNRESERVED";}};
  +
           /** Illegal syntax for location string value */
           public static final ReasonCode ILLEGAL_LOCATION_SYNTAX
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"ILLEGAL_LOCATION_SYNTAX";}};
  +
           /** Cannot refresh dirty resource without ignoreDirty flag set */
           public static final ReasonCode CANNOT_REFRESH_DIRTY_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_REFRESH_DIRTY_RESOURCE";}};
  +
           /** Operation cannot be performed if the resource content is stale */
           public static final ReasonCode MUST_NOT_BE_STALE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"MUST_NOT_BE_STALE";}};
  +
           /** Attempt to synchronize content failed */
           public static final ReasonCode CANNOT_SYNCHRONIZE_CONTENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_SYNCHRONIZE_CONTENT";}};
  +
           /** The new resource could not be properly initialized */
           public static final ReasonCode CANNOT_INITIALIZE_RESOURCE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_INITIALIZE_RESOURCE";}};
  +
           /** Cannot read members of folder */
           public static final ReasonCode CANNOT_READ_MEMBERS
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_READ_MEMBERS";}};
  +
           /** Checkin cannot update the server content */
           public static final ReasonCode CANNOT_UPDATE_SERVER_CONTENT
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_UPDATE_SERVER_CONTENT";}};
  +
           /** Not Cannot create multiple bindings to one resource */
           public static final ReasonCode MULTIPLE_BINDINGS_NOT_ALLOWED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"MULTIPLE_BINDINGS_NOT_ALLOWED";}};
  +
           /** Cannot create cross-server binding */
           public static final ReasonCode NO_CROSS_SERVER_BINDING
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"NO_CROSS_SERVER_BINDING";}};
  +
           /** Cannot overwrite existing binding */
           public static final ReasonCode CANNOT_OVERWRITE
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_OVERWRITE";}};
  +
           /** Cannot create location cycle */
           public static final ReasonCode CYCLE_NOT_ALLOWED
  -            = new ReasonCode();
  -        
  +            = new ReasonCode(){public String toString(){return 
"CYCLE_NOT_ALLOWED";}};
  +
           /** Cannot create specified binding */
           public static final ReasonCode CANNOT_CREATE_BINDING
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"CANNOT_CREATE_BINDING";}};
   
           // NOT YET STANDARD - ACL
           public static final ReasonCode ACE_CONFLICT
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return "ACE_CONFLICT";}};
           public static final ReasonCode DENY_BEFORE_GRANT
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"DENY_BEFORE_GRANT";}};
           public static final ReasonCode GRANT_ONLY
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return "GRANT_ONLY";}};
           public static final ReasonCode PRIVILEGE_NOT_SUPPORTED
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"PRIVILEGE_NOT_SUPPORTED";}};
           public static final ReasonCode MISSING_REQUIRED_PRINCIPAL
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"MISSING_REQUIRED_PRINCIPAL";}};
           public static final ReasonCode PRINCIPAL_NOT_FOUND
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"PRINCIPAL_NOT_FOUND";}};
           public static final ReasonCode INVALID_PRINCIPAL
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return 
"INVALID_PRINCIPAL";}};
   
           // NOT YET STANDARD - Locking
           public static final ReasonCode LOCKED
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return "LOCKED";}};
           public static final ReasonCode CANNOT_LOCK
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return "CANNOT_LOCK";}};
           public static final ReasonCode CANNOT_UNLOCK
  -            = new ReasonCode();
  +            = new ReasonCode(){public String toString(){return "CANNOT_UNLOCK";}};
           
           
           /** Map of RFC 3253 pre & post condition names to WvcmException.ReasonCode 
*/
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to