org.jibx.schema.org.w3._2004._08.wsdl.wsdl20.MessageRefFaultType Maven / Gradle / Ivy
package org.jibx.schema.org.w3._2004._08.wsdl.wsdl20;
import java.util.ArrayList;
import java.util.List;
import org.jibx.runtime.QName;
import org.w3c.dom.Element;
/**
* Schema fragment(s) for this class:
*
* <xs:complexType xmlns:ns="http://www.w3.org/2004/08/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" mixed="false" name="MessageRefFaultType">
* <xs:complexContent>
* <xs:extension base="ns:ExtensibleDocumentedType">
* <xs:choice minOccurs="0" maxOccurs="unbounded">
* <!-- Reference to inner class Choice -->
* </xs:choice>
* <xs:attribute type="xs:QName" use="required" name="ref"/>
* <xs:attribute type="xs:string" use="optional" name="messageLabel"/>
* </xs:extension>
* </xs:complexContent>
* </xs:complexType>
*
*/
public class MessageRefFaultType extends ExtensibleDocumentedType
{
private List choiceList = new ArrayList();
private QName ref;
private String messageLabel;
/**
* Get the list of choice items.
*
* @return list
*/
public List getChoiceList() {
return choiceList;
}
/**
* Set the list of choice items.
*
* @param list
*/
public void setChoiceList(List list) {
choiceList = list;
}
/**
* Get the 'ref' attribute value.
*
* @return value
*/
public QName getRef() {
return ref;
}
/**
* Set the 'ref' attribute value.
*
* @param ref
*/
public void setRef(QName ref) {
this.ref = ref;
}
/**
* Get the 'messageLabel' attribute value.
*
* @return value
*/
public String getMessageLabel() {
return messageLabel;
}
/**
* Set the 'messageLabel' attribute value.
*
* @param messageLabel
*/
public void setMessageLabel(String messageLabel) {
this.messageLabel = messageLabel;
}
/**
* Schema fragment(s) for this class:
*
* <xs:choice xmlns:ns="http://www.w3.org/2004/08/wsdl" xmlns:xs="http://www.w3.org/2001/XMLSchema" minOccurs="0" maxOccurs="unbounded">
* <xs:element type="ns:FeatureType" name="feature"/>
* <xs:element type="ns:PropertyType" name="property"/>
* <xs:any minOccurs="1" maxOccurs="1" processContents="lax" namespace="##other"/>
* </xs:choice>
*
*/
public static class Choice
{
private int choiceListSelect = -1;
private static final int FEATURE_CHOICE = 0;
private static final int PROPERTY_CHOICE = 1;
private static final int ANY_CHOICE = 2;
private FeatureType feature;
private PropertyType property;
private Element any;
private void setChoiceListSelect(int choice) {
if (choiceListSelect == -1) {
choiceListSelect = choice;
} else if (choiceListSelect != choice) {
throw new IllegalStateException(
"Need to call clearChoiceListSelect() before changing existing choice");
}
}
/**
* Clear the choice selection.
*/
public void clearChoiceListSelect() {
choiceListSelect = -1;
}
/**
* Check if Feature is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifFeature() {
return choiceListSelect == FEATURE_CHOICE;
}
/**
* Get the 'feature' element value.
*
* @return value
*/
public FeatureType getFeature() {
return feature;
}
/**
* Set the 'feature' element value.
*
* @param feature
*/
public void setFeature(FeatureType feature) {
setChoiceListSelect(FEATURE_CHOICE);
this.feature = feature;
}
/**
* Check if Property is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifProperty() {
return choiceListSelect == PROPERTY_CHOICE;
}
/**
* Get the 'property' element value.
*
* @return value
*/
public PropertyType getProperty() {
return property;
}
/**
* Set the 'property' element value.
*
* @param property
*/
public void setProperty(PropertyType property) {
setChoiceListSelect(PROPERTY_CHOICE);
this.property = property;
}
/**
* Check if Any is current selection for choice.
*
* @return true
if selection, false
if not
*/
public boolean ifAny() {
return choiceListSelect == ANY_CHOICE;
}
/**
* Get the any value.
*
* @return value
*/
public Element getAny() {
return any;
}
/**
* Set the any value.
*
* @param any
*/
public void setAny(Element any) {
setChoiceListSelect(ANY_CHOICE);
this.any = any;
}
}
}