001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
004// Any modifications to this file will be lost upon recompilation of the source schema. 
005// Generated on: 2015.08.26 at 05:38:23 AM CEST 
006//
007
008
009package org.opends.dsml.protocol;
010
011import java.util.ArrayList;
012import java.util.List;
013import javax.xml.bind.annotation.XmlAccessType;
014import javax.xml.bind.annotation.XmlAccessorType;
015import javax.xml.bind.annotation.XmlAttribute;
016import javax.xml.bind.annotation.XmlElement;
017import javax.xml.bind.annotation.XmlSchemaType;
018import javax.xml.bind.annotation.XmlSeeAlso;
019import javax.xml.bind.annotation.XmlType;
020
021
022/**
023 * <p>Java class for LDAPResult complex type.
024 * 
025 * <p>The following schema fragment specifies the expected content contained within this class.
026 * 
027 * <pre>
028 * &lt;complexType name="LDAPResult">
029 *   &lt;complexContent>
030 *     &lt;extension base="{urn:oasis:names:tc:DSML:2:0:core}DsmlMessage">
031 *       &lt;sequence>
032 *         &lt;element name="resultCode" type="{urn:oasis:names:tc:DSML:2:0:core}ResultCode"/>
033 *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
034 *         &lt;element name="referral" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
035 *       &lt;/sequence>
036 *       &lt;attribute name="matchedDN" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlDN" />
037 *     &lt;/extension>
038 *   &lt;/complexContent>
039 * &lt;/complexType>
040 * </pre>
041 * 
042 * 
043 */
044@XmlAccessorType(XmlAccessType.FIELD)
045@XmlType(name = "LDAPResult", namespace = "urn:oasis:names:tc:DSML:2:0:core", propOrder = {
046    "resultCode",
047    "errorMessage",
048    "referral"
049})
050@XmlSeeAlso({
051    ExtendedResponse.class
052})
053public class LDAPResult
054    extends DsmlMessage
055{
056
057    @XmlElement(namespace = "urn:oasis:names:tc:DSML:2:0:core", required = true)
058    protected ResultCode resultCode;
059    @XmlElement(namespace = "urn:oasis:names:tc:DSML:2:0:core")
060    protected String errorMessage;
061    @XmlElement(namespace = "urn:oasis:names:tc:DSML:2:0:core")
062    @XmlSchemaType(name = "anyURI")
063    protected List<String> referral;
064    @XmlAttribute(name = "matchedDN")
065    protected String matchedDN;
066
067    /**
068     * Gets the value of the resultCode property.
069     * 
070     * @return
071     *     possible object is
072     *     {@link ResultCode }
073     *     
074     */
075    public ResultCode getResultCode() {
076        return resultCode;
077    }
078
079    /**
080     * Sets the value of the resultCode property.
081     * 
082     * @param value
083     *     allowed object is
084     *     {@link ResultCode }
085     *     
086     */
087    public void setResultCode(ResultCode value) {
088        this.resultCode = value;
089    }
090
091    /**
092     * Gets the value of the errorMessage property.
093     * 
094     * @return
095     *     possible object is
096     *     {@link String }
097     *     
098     */
099    public String getErrorMessage() {
100        return errorMessage;
101    }
102
103    /**
104     * Sets the value of the errorMessage property.
105     * 
106     * @param value
107     *     allowed object is
108     *     {@link String }
109     *     
110     */
111    public void setErrorMessage(String value) {
112        this.errorMessage = value;
113    }
114
115    /**
116     * Gets the value of the referral property.
117     * 
118     * <p>
119     * This accessor method returns a reference to the live list,
120     * not a snapshot. Therefore any modification you make to the
121     * returned list will be present inside the JAXB object.
122     * This is why there is not a <CODE>set</CODE> method for the referral property.
123     * 
124     * <p>
125     * For example, to add a new item, do as follows:
126     * <pre>
127     *    getReferral().add(newItem);
128     * </pre>
129     * 
130     * 
131     * <p>
132     * Objects of the following type(s) are allowed in the list
133     * {@link String }
134     * 
135     * 
136     */
137    public List<String> getReferral() {
138        if (referral == null) {
139            referral = new ArrayList<String>();
140        }
141        return this.referral;
142    }
143
144    /**
145     * Gets the value of the matchedDN property.
146     * 
147     * @return
148     *     possible object is
149     *     {@link String }
150     *     
151     */
152    public String getMatchedDN() {
153        return matchedDN;
154    }
155
156    /**
157     * Sets the value of the matchedDN property.
158     * 
159     * @param value
160     *     allowed object is
161     *     {@link String }
162     *     
163     */
164    public void setMatchedDN(String value) {
165        this.matchedDN = value;
166    }
167
168}