1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.apache.commons.vfs2.operations.vcs;
18
19 /**
20 * Enumerates VFS status.
21 *
22 * @since 0.1
23 */
24 public enum VcsStatus {
25
26 /**
27 * Unknown.
28 */
29 UNKNOWN(-1),
30
31 /**
32 * Not modified.
33 */
34 NOT_MODIFIED(0),
35
36 /**
37 * Added.
38 */
39 ADDED(1),
40
41 /**
42 * Conflicted.
43 */
44 CONFLICTED(2),
45
46 /**
47 * Deleted.
48 */
49 DELETED(3),
50
51 /**
52 * Merged.
53 */
54 MERGED(4),
55
56 /**
57 * Ignored.
58 */
59 IGNORED(5),
60
61 /**
62 * Modified.
63 */
64 MODIFIED(6),
65
66 /**
67 * Replaced.
68 */
69 REPLACED(7),
70
71 /**
72 * Unversioned.
73 */
74 UNVERSIONED(8),
75
76 /**
77 * Missing.
78 */
79 MISSING(9),
80
81 /**
82 * Obstructed.
83 */
84 OBSTRUCTED(10),
85
86 /**
87 * Reverted.
88 */
89 REVERTED(11),
90
91 /**
92 * Resolved.
93 */
94 RESOLVED(12),
95
96 /**
97 * Copied.
98 */
99 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 }