com.dell.cpsd.hal.data.provider.api.ContextPath Maven / Gradle / Ivy
package com.dell.cpsd.hal.data.provider.api;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* ContextPath
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"elementType",
"namedValues"
})
public class ContextPath {
/**
*
* (Required)
*
*/
@JsonProperty("elementType")
private String elementType;
@JsonProperty("namedValues")
private List namedValues = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public ContextPath() {
}
/**
*
* @param namedValues
* @param elementType
*/
public ContextPath(String elementType, List namedValues) {
super();
this.elementType = elementType;
this.namedValues = namedValues;
}
/**
*
* (Required)
*
* @return
* The elementType
*/
@JsonProperty("elementType")
public String getElementType() {
return elementType;
}
/**
*
* (Required)
*
* @param elementType
* The elementType
*/
@JsonProperty("elementType")
public void setElementType(String elementType) {
this.elementType = elementType;
}
/**
*
* @return
* The namedValues
*/
@JsonProperty("namedValues")
public List getNamedValues() {
return namedValues;
}
/**
*
* @param namedValues
* The namedValues
*/
@JsonProperty("namedValues")
public void setNamedValues(List namedValues) {
this.namedValues = namedValues;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(elementType).append(namedValues).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ContextPath) == false) {
return false;
}
ContextPath rhs = ((ContextPath) other);
return new EqualsBuilder().append(elementType, rhs.elementType).append(namedValues, rhs.namedValues).isEquals();
}
}