org.bidib.jbidibc.exchange.firmware.FirmwareNode Maven / Gradle / Ivy
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.8
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.12.16 at 01:05:47 PM CET
//
package org.bidib.jbidibc.exchange.firmware;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Java class for FirmwareNode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="FirmwareNode">
* <complexContent>
* <extension base="{http://www.bidib.org/schema/firmware}NodeType">
* <sequence>
* <element name="Filename" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* <attribute name="DestinationNumber" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FirmwareNode", propOrder = {
"filename"
})
public class FirmwareNode
extends NodeType
{
@XmlElement(name = "Filename", required = true)
protected String filename;
@XmlAttribute(name = "DestinationNumber", required = true)
protected int destinationNumber;
/**
* Gets the value of the filename property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFilename() {
return filename;
}
/**
* Sets the value of the filename property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFilename(String value) {
this.filename = value;
}
/**
* Gets the value of the destinationNumber property.
*
*/
public int getDestinationNumber() {
return destinationNumber;
}
/**
* Sets the value of the destinationNumber property.
*
*/
public void setDestinationNumber(int value) {
this.destinationNumber = value;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
public FirmwareNode withFilename(String value) {
setFilename(value);
return this;
}
public FirmwareNode withDestinationNumber(int value) {
setDestinationNumber(value);
return this;
}
@Override
public FirmwareNode withNodetext(NodeTextType... values) {
if (values!= null) {
for (NodeTextType value: values) {
getNodetext().add(value);
}
}
return this;
}
@Override
public FirmwareNode withNodetext(Collection values) {
if (values!= null) {
getNodetext().addAll(values);
}
return this;
}
@Override
public FirmwareNode withNode(NodeType... values) {
if (values!= null) {
for (NodeType value: values) {
getNode().add(value);
}
}
return this;
}
@Override
public FirmwareNode withNode(Collection values) {
if (values!= null) {
getNode().addAll(values);
}
return this;
}
@Override
public FirmwareNode withComment(String value) {
setComment(value);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy