com.testdroid.api.model.APIDeviceProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
package com.testdroid.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;
/**
* @author Łukasz Kajda
* @author Slawomir Pawluk
*/
public class APIDeviceProperty extends APIEntity {
private String displayName;
private String name;
private Long propertyGroupId;
private String propertyGroupName;
private String labelGroupName;
public APIDeviceProperty() {
}
public APIDeviceProperty(
Long parentId, Long id, String name, String displayName, Long propertyGroupId,
String propertyGroupName, String labelGroupName) {
super(id);
this.parentId = parentId;
this.name = name;
this.displayName = displayName;
this.propertyGroupId = propertyGroupId;
this.propertyGroupName = propertyGroupName;
this.labelGroupName = labelGroupName;
}
public APIDeviceProperty(
Long id, String name, String displayName, Long propertyGroupId,
String propertyGroupName, String labelGroupName) {
this(null, id, name, displayName, propertyGroupId, propertyGroupName, labelGroupName);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public Long getPropertyGroupId() {
return propertyGroupId;
}
public void setPropertyGroupId(Long propertyGroupId) {
this.propertyGroupId = propertyGroupId;
}
public String getPropertyGroupName() {
return propertyGroupName;
}
public void setPropertyGroupName(String propertyGroupName) {
this.propertyGroupName = propertyGroupName;
}
public String getLabelGroupName() {
return labelGroupName;
}
public void setLabelGroupName(String labelGroupName) {
this.labelGroupName = labelGroupName;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIDeviceProperty apiDeviceProperty = (APIDeviceProperty) from;
cloneBase(from);
this.displayName = apiDeviceProperty.displayName;
this.name = apiDeviceProperty.name;
this.propertyGroupId = apiDeviceProperty.propertyGroupId;
this.propertyGroupName = apiDeviceProperty.propertyGroupName;
this.labelGroupName = apiDeviceProperty.labelGroupName;
}
}