001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.commons.vfs2.operations.vcs; 018 019/** 020 * Enumerates VFS status. 021 * 022 * @since 0.1 023 */ 024public enum VcsStatus { 025 026 /** 027 * Unknown. 028 */ 029 UNKNOWN(-1), 030 031 /** 032 * Not modified. 033 */ 034 NOT_MODIFIED(0), 035 036 /** 037 * Added. 038 */ 039 ADDED(1), 040 041 /** 042 * Conflicted. 043 */ 044 CONFLICTED(2), 045 046 /** 047 * Deleted. 048 */ 049 DELETED(3), 050 051 /** 052 * Merged. 053 */ 054 MERGED(4), 055 056 /** 057 * Ignored. 058 */ 059 IGNORED(5), 060 061 /** 062 * Modified. 063 */ 064 MODIFIED(6), 065 066 /** 067 * Replaced. 068 */ 069 REPLACED(7), 070 071 /** 072 * Unversioned. 073 */ 074 UNVERSIONED(8), 075 076 /** 077 * Missing. 078 */ 079 MISSING(9), 080 081 /** 082 * Obstructed. 083 */ 084 OBSTRUCTED(10), 085 086 /** 087 * Reverted. 088 */ 089 REVERTED(11), 090 091 /** 092 * Resolved. 093 */ 094 RESOLVED(12), 095 096 /** 097 * Copied. 098 */ 099 COPIED(13), 100 101 /** 102 * Moved. 103 */ 104 MOVED(14), 105 106 /** 107 * Restored. 108 */ 109 RESTORED(15), 110 111 /** 112 * Updated. 113 */ 114 UPDATED(16), 115 116 /** 117 * External. 118 */ 119 EXTERNAL(18), 120 121 /** 122 * Corrupted. 123 */ 124 CORRUPTED(19), 125 126 /** 127 * Not reverted. 128 */ 129 NOT_REVERTED(20); 130 131 private final int status; 132 133 VcsStatus(final int status) { 134 this.status = status; 135 } 136 137 /** 138 * Gets the status. 139 * 140 * @return the status of FileObject 141 */ 142 public int getStatus() { 143 return status; 144 } 145}