oasis.names.specification.ubl.schema.xsd.commonextensioncomponents_2.ExtensionContentType Maven / Gradle / Ivy
package oasis.names.specification.ubl.schema.xsd.commonextensioncomponents_2;
import java.io.Serializable;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlType;
import com.phloc.commons.equals.EqualsUtils;
import com.phloc.commons.hash.HashCodeGenerator;
import com.phloc.commons.string.ToStringGenerator;
import org.w3c.dom.Element;
/**
* Java class for ExtensionContentType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ExtensionContentType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='skip' minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExtensionContentType", propOrder = {
"any"
})
public class ExtensionContentType implements Serializable
{
@XmlAnyElement
private Element any;
/**
* Default constructor
* Created by phloc-ubl-jaxb-plugin -Xphloc-ubl-value
*
*/
public ExtensionContentType() {
}
/**
* Gets the value of the any property.
*
* @return
* possible object is
* {@link Element }
*
*/
@Nullable
public Element getAny() {
return any;
}
/**
* Sets the value of the any property.
*
* @param value
* allowed object is
* {@link Element }
*
*/
public void setAny(
@Nullable
Element value) {
this.any = value;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if ((o == null)||(!getClass().equals(o.getClass()))) {
return false;
}
final ExtensionContentType rhs = ((ExtensionContentType) o);
if (!EqualsUtils.equals(any, rhs.any)) {
return false;
}
return true;
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(any).getHashCode();
}
/**
* Created by phloc-jaxb22-plugin -Xphloc-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("any", any).toString();
}
}