All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.xmlns.webservices.jaxws_databinding.XmlMTOM Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show newest version
/*
 * Copyright (c) 2012, 2019 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.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 annotationType() { return MTOM.class; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy