com.oracle.xmlns.webservices.jaxws_databinding.XmlMTOM Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.oracle.xmlns.webservices.jaxws_databinding;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.ws.soap.MTOM;
import java.lang.annotation.Annotation;
import static com.oracle.xmlns.webservices.jaxws_databinding.Util.nullSafe;
/**
* This file was generated by JAXB-RI v2.2.6 and afterwards modified
* to implement appropriate Annotation
*
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="threshold" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "mtom")
public class XmlMTOM implements MTOM {
@XmlAttribute(name = "enabled")
protected Boolean enabled;
@XmlAttribute(name = "threshold")
protected Integer threshold;
/**
* Gets the value of the enabled property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isEnabled() {
if (enabled == null) {
return true;
} else {
return enabled;
}
}
/**
* Sets the value of the enabled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setEnabled(Boolean value) {
this.enabled = value;
}
/**
* Gets the value of the threshold property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getThreshold() {
if (threshold == null) {
return 0;
} else {
return threshold;
}
}
/**
* Sets the value of the threshold property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setThreshold(Integer value) {
this.threshold = value;
}
@Override
public boolean enabled() {
return nullSafe(enabled, Boolean.TRUE);
}
@Override
public int threshold() {
return nullSafe(threshold, 0);
}
@Override
public Class extends Annotation> annotationType() {
return MTOM.class;
}
}