diff options
Diffstat (limited to 'connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/response/data/Field.java')
-rw-r--r-- | connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/response/data/Field.java | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/response/data/Field.java b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/response/data/Field.java new file mode 100644 index 000000000..de56aedbf --- /dev/null +++ b/connector-bugzilla-rest/org.eclipse.mylyn.bugzilla.rest.core/src/org/eclipse/mylyn/internal/bugzilla/rest/core/response/data/Field.java @@ -0,0 +1,96 @@ +/******************************************************************************* + * Copyright (c) 2013 Frank Becker and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Frank Becker - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.bugzilla.rest.core.response.data; + +import java.io.Serializable; + +import com.google.gson.annotations.SerializedName; + +public class Field implements Named, Serializable { + + private static final long serialVersionUID = -5578410875657273067L; + + private int id; + + private int type; + + @SerializedName("is_custom") + private boolean custom; + + private String name; + + @SerializedName("display_name") + private String displayName; + + @SerializedName("is_mandatory") + private boolean mandatory; + + @SerializedName("is_on_bug_entry") + private boolean onBugEntry; + + @SerializedName("visibility_field") + private String visibilityField; + + @SerializedName("visibility_values") + private String[] visibilityValues; + + @SerializedName("value_field") + private String valueField; + + private FieldValues[] values; + + public int getId() { + return id; + } + + public int getType() { + return type; + } + + public boolean isCustom() { + return custom; + } + + @Override + public String getName() { + return name; + } + + public String getDisplayName() { + return displayName; + } + + public boolean isMandatory() { + return mandatory; + } + + public boolean isOnBugEntry() { + return onBugEntry; + } + + public String getVisibilityField() { + return visibilityField; + } + + public String[] getVisibilityValues() { + return visibilityValues; + } + + public String getValueField() { + return valueField; + } + + public FieldValues[] getValues() { + return values; + } + +}
\ No newline at end of file |