1 /*
2  * Copyright (C) 2013 DroidDriver committers
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package io.appium.droiddriver.finders;
18 
19 public enum Attribute {
20   CHECKABLE("checkable"),
21   CHECKED("checked"),
22   CLASS("class"),
23   CLICKABLE("clickable"),
24   CONTENT_DESC("content-desc"),
25   ENABLED("enabled"),
26   FOCUSABLE("focusable"),
27   FOCUSED("focused"),
28   LONG_CLICKABLE("long-clickable"),
29   PACKAGE("package"),
30   PASSWORD("password"),
31   RESOURCE_ID("resource-id"),
32   SCROLLABLE("scrollable"),
33   SELECTION_START("selection-start"),
34   SELECTION_END("selection-end"),
35   SELECTED("selected"),
36   TEXT("text"),
37   BOUNDS("bounds");
38 
39   private final String name;
40 
Attribute(String name)41   private Attribute(String name) {
42     this.name = name;
43   }
44 
getName()45   public String getName() {
46     return name;
47   }
48 
49   @Override
toString()50   public String toString() {
51     return name;
52   }
53 }
54