//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.08.05 at 10:17:37 PM BST
//
package org.openprovenance.prov.dot;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.openprovenance.prov.xml.builder.Equals;
import org.openprovenance.prov.xml.builder.HashCode;
import org.openprovenance.prov.xml.builder.ToString;
import org.openprovenance.prov.xml.builder.JAXBEqualsBuilder;
import org.openprovenance.prov.xml.builder.JAXBHashCodeBuilder;
import org.openprovenance.prov.xml.builder.JAXBToStringBuilder;
/**
* <p>Java class for RelationStyleMapEntry complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RelationStyleMapEntry">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="printRole" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RelationStyleMapEntry", namespace = "http://openprovenance.org/model/opmPrinterConfig")
public class RelationStyleMapEntry
implements Equals, HashCode, ToString
{
@XmlAttribute(name = "type")
protected String type;
@XmlAttribute(name = "style")
protected String style;
@XmlAttribute(name = "printRole")
protected Boolean printRole;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the style property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStyle() {
return style;
}
/**
* Sets the value of the style property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStyle(String value) {
this.style = value;
}
/**
* Gets the value of the printRole property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPrintRole() {
return printRole;
}
/**
* Sets the value of the printRole property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPrintRole(Boolean value) {
this.printRole = value;
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof RelationStyleMapEntry)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final RelationStyleMapEntry that = ((RelationStyleMapEntry) object);
equalsBuilder.append(this.getType(), that.getType());
equalsBuilder.append(this.getStyle(), that.getStyle());
equalsBuilder.append(this.isPrintRole(), that.isPrintRole());
}
public boolean equals(Object object) {
if (!(object instanceof RelationStyleMapEntry)) {
return false;
}
if (this == object) {
return true;
}
final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
equals(object, equalsBuilder);
return equalsBuilder.isEquals();
}
public void hashCode(HashCodeBuilder hashCodeBuilder) {
hashCodeBuilder.append(this.getType());
hashCodeBuilder.append(this.getStyle());
hashCodeBuilder.append(this.isPrintRole());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
public void toString(ToStringBuilder toStringBuilder) {
{
String theType;
theType = this.getType();
toStringBuilder.append("type", theType);
}
{
String theStyle;
theStyle = this.getStyle();
toStringBuilder.append("style", theStyle);
}
{
Boolean thePrintRole;
thePrintRole = this.isPrintRole();
toStringBuilder.append("printRole", thePrintRole);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
}