package org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import org.cagrid.gaards.authentication.faults.AuthenticationProviderFault;
import org.cagrid.gaards.authentication.faults.CredentialNotSupportedFault;
import org.cagrid.gaards.authentication.faults.InsufficientAttributeFault;
import org.cagrid.gaards.authentication.faults.InvalidCredentialFault;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.InvalidQueryExpressionFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.InvalidResourcePropertyQNameFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.InvalidSetResourcePropertiesRequestContentFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.QueryEvaluationErrorFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.ResourceUnknownFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.SetResourcePropertyRequestFailedFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.UnableToModifyResourcePropertyFaultType;
import org.oasis_open.docs.wsrf._2004._06.wsrf_ws_resourceproperties_1_2_draft_01.UnknownQueryExpressionDialectFaultType;
import org.w3._2001.xmlschema.Adapter1;
import org.w3c.dom.Element;
import org.xmlsoap.schemas.ws._2004._03.addressing.EndpointReferenceType;
/**
* <p>Java class for BaseFaultType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="BaseFaultType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="Originator" type="{http://schemas.xmlsoap.org/ws/2004/03/addressing}EndpointReferenceType" minOccurs="0"/>
* <element name="ErrorCode" minOccurs="0">
* <complexType>
* <complexContent>
* <extension base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <anyAttribute processContents='skip'/>
* </extension>
* </complexContent>
* </complexType>
* </element>
* <element name="Description" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
* </extension>
* </simpleContent>
* </complexType>
* </element>
* <element name="FaultCause" type="{http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd}BaseFaultType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BaseFaultType", propOrder = {
"timestamp",
"originator",
"errorCode",
"description",
"faultCause"
})
@XmlSeeAlso({
QueryEvaluationErrorFaultType.class,
InvalidSetResourcePropertiesRequestContentFaultType.class,
InvalidResourcePropertyQNameFaultType.class,
UnableToModifyResourcePropertyFaultType.class,
UnknownQueryExpressionDialectFaultType.class,
InvalidQueryExpressionFaultType.class,
SetResourcePropertyRequestFailedFaultType.class,
ResourceUnknownFaultType.class,
InvalidCredentialFault.class,
CredentialNotSupportedFault.class,
InsufficientAttributeFault.class,
AuthenticationProviderFault.class
})
public class BaseFaultType
implements Serializable
{
@XmlElement(name = "Timestamp", required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar timestamp;
@XmlElement(name = "Originator")
protected EndpointReferenceType originator;
@XmlElement(name = "ErrorCode")
protected BaseFaultType.ErrorCode errorCode;
@XmlElement(name = "Description")
protected List<BaseFaultType.Description> description;
@XmlElement(name = "FaultCause")
protected List<BaseFaultType> faultCause;
/**
* Gets the value of the timestamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTimestamp(Calendar value) {
this.timestamp = value;
}
/**
* Gets the value of the originator property.
*
* @return
* possible object is
* {@link EndpointReferenceType }
*
*/
public EndpointReferenceType getOriginator() {
return originator;
}
/**
* Sets the value of the originator property.
*
* @param value
* allowed object is
* {@link EndpointReferenceType }
*
*/
public void setOriginator(EndpointReferenceType value) {
this.originator = value;
}
/**
* Gets the value of the errorCode property.
*
* @return
* possible object is
* {@link BaseFaultType.ErrorCode }
*
*/
public BaseFaultType.ErrorCode getErrorCode() {
return errorCode;
}
/**
* Sets the value of the errorCode property.
*
* @param value
* allowed object is
* {@link BaseFaultType.ErrorCode }
*
*/
public void setErrorCode(BaseFaultType.ErrorCode value) {
this.errorCode = value;
}
/**
* Gets the value of the description property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the description property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDescription().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BaseFaultType.Description }
*
*
*/
public List<BaseFaultType.Description> getDescription() {
if (description == null) {
description = new ArrayList<BaseFaultType.Description>();
}
return this.description;
}
/**
* Gets the value of the faultCause property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the faultCause property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getFaultCause().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BaseFaultType }
*
*
*/
public List<BaseFaultType> getFaultCause() {
if (faultCause == null) {
faultCause = new ArrayList<BaseFaultType>();
}
return this.faultCause;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
public static class Description
implements Serializable
{
@XmlValue
protected String value;
@XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String lang;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the lang property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLang() {
return lang;
}
/**
* Sets the value of the lang property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLang(String value) {
this.lang = value;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="dialect" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <anyAttribute processContents='skip'/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class ErrorCode
implements Serializable
{
@XmlMixed
@XmlAnyElement
protected List<Object> content;
@XmlAttribute(name = "dialect", required = true)
@XmlSchemaType(name = "anyURI")
protected String dialect;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the content property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the content property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContent().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link Element }
*
*
*/
public List<Object> getContent() {
if (content == null) {
content = new ArrayList<Object>();
}
return this.content;
}
/**
* Gets the value of the dialect property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDialect() {
return dialect;
}
/**
* Sets the value of the dialect property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDialect(String value) {
this.dialect = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
}