org.apache.cxf.ws.rm.manager.SourcePolicyType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.02.05 at 01:59:18 PM EST
//
package org.apache.cxf.ws.rm.manager;
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 javax.xml.datatype.Duration;
import org.apache.cxf.jaxb.DatatypeFactory;
/**
* RM source configuration properties.
* Used for configuring an RM source.
*
*
* Java class for SourcePolicyType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SourcePolicyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="sequenceTerminationPolicy" type="{http://cxf.apache.org/ws/rm/manager}SequenceTerminationPolicyType" minOccurs="0"/>
* </sequence>
* <attribute name="acksTo" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="includeOffer" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="offeredSequenceExpiration" type="{http://www.w3.org/2001/XMLSchema}duration" default="PT0S" />
* <attribute name="sequenceExpiration" type="{http://www.w3.org/2001/XMLSchema}duration" default="PT0S" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SourcePolicyType", propOrder = {
"sequenceTerminationPolicy"
})
public class SourcePolicyType {
@XmlElement(namespace = "http://cxf.apache.org/ws/rm/manager")
protected SequenceTerminationPolicyType sequenceTerminationPolicy;
@XmlAttribute
protected String acksTo;
@XmlAttribute
protected Boolean includeOffer;
@XmlAttribute
protected Duration offeredSequenceExpiration;
@XmlAttribute
protected Duration sequenceExpiration;
/**
* Gets the value of the sequenceTerminationPolicy property.
*
* @return
* possible object is
* {@link SequenceTerminationPolicyType }
*
*/
public SequenceTerminationPolicyType getSequenceTerminationPolicy() {
return sequenceTerminationPolicy;
}
/**
* Sets the value of the sequenceTerminationPolicy property.
*
* @param value
* allowed object is
* {@link SequenceTerminationPolicyType }
*
*/
public void setSequenceTerminationPolicy(SequenceTerminationPolicyType value) {
this.sequenceTerminationPolicy = value;
}
public boolean isSetSequenceTerminationPolicy() {
return (this.sequenceTerminationPolicy!= null);
}
/**
* Gets the value of the acksTo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcksTo() {
return acksTo;
}
/**
* Sets the value of the acksTo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAcksTo(String value) {
this.acksTo = value;
}
public boolean isSetAcksTo() {
return (this.acksTo!= null);
}
/**
* Gets the value of the includeOffer property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isIncludeOffer() {
if (includeOffer == null) {
return true;
} else {
return includeOffer;
}
}
/**
* Sets the value of the includeOffer property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIncludeOffer(boolean value) {
this.includeOffer = value;
}
public boolean isSetIncludeOffer() {
return (this.includeOffer!= null);
}
public void unsetIncludeOffer() {
this.includeOffer = null;
}
/**
* Sets the value of the offeredSequenceExpiration property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setOfferedSequenceExpiration(Duration value) {
this.offeredSequenceExpiration = value;
}
public boolean isSetOfferedSequenceExpiration() {
return (this.offeredSequenceExpiration!= null);
}
/**
* Sets the value of the sequenceExpiration property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setSequenceExpiration(Duration value) {
this.sequenceExpiration = value;
}
public boolean isSetSequenceExpiration() {
return (this.sequenceExpiration!= null);
}
/**
* Gets the value of the offeredSequenceExpiration property.
*
*/
public Duration getOfferedSequenceExpiration() {
if (null == offeredSequenceExpiration) {
return DatatypeFactory.createDuration("PT0S");
} else {
return offeredSequenceExpiration;
}
}
/**
* Gets the value of the sequenceExpiration property.
*
*/
public Duration getSequenceExpiration() {
if (null == sequenceExpiration) {
return DatatypeFactory.createDuration("PT0S");
} else {
return sequenceExpiration;
}
}
}