1 /* 2 * Copyright 2017 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2; 17 18 import javax.xml.bind.annotation.XmlAccessType; 19 import javax.xml.bind.annotation.XmlAccessorType; 20 import javax.xml.bind.annotation.XmlAttribute; 21 import javax.xml.bind.annotation.XmlType; 22 23 24 /** 25 * <p>Java class for ResultCode complex type. 26 * 27 * <p>The following schema fragment specifies the expected content contained within this class. 28 * 29 * <pre> 30 * <complexType name="ResultCode"> 31 * <complexContent> 32 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 33 * <attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> 34 * <attribute name="descr" type="{urn:oasis:names:tc:DSML:2:0:core}LDAPResultCode" /> 35 * </restriction> 36 * </complexContent> 37 * </complexType> 38 * </pre> 39 * 40 * 41 */ 42 @XmlAccessorType(XmlAccessType.FIELD) 43 @XmlType(name = "ResultCode") 44 public class ResultCode { 45 46 @XmlAttribute(name = "code", required = true) 47 protected int code; 48 @XmlAttribute(name = "descr") 49 protected LDAPResultCode descr; 50 51 /** 52 * Gets the value of the code property. 53 * 54 */ 55 public int getCode() { 56 return code; 57 } 58 59 /** 60 * Sets the value of the code property. 61 * 62 */ 63 public void setCode(int value) { 64 this.code = value; 65 } 66 67 /** 68 * Gets the value of the descr property. 69 * 70 * @return 71 * possible object is 72 * {@link LDAPResultCode } 73 * 74 */ 75 public LDAPResultCode getDescr() { 76 return descr; 77 } 78 79 /** 80 * Sets the value of the descr property. 81 * 82 * @param value 83 * allowed object is 84 * {@link LDAPResultCode } 85 * 86 */ 87 public void setDescr(LDAPResultCode value) { 88 this.descr = value; 89 } 90 91 }