View Javadoc
1   /*
2    * Copyright 2009 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.xds.core.ebxml;
17  
18  import java.util.List;
19  
20  import org.openehealth.ipf.commons.ihe.xds.core.responses.Status;
21  
22  /**
23   * Represents a ebXML {@code RegistryResponseType}.
24   * @author Jens Riemschneider
25   */
26  public interface EbXMLRegistryResponse {
27      /**
28       * @param status
29       *          the status result.
30       */
31      void setStatus(Status status);
32      
33      /**
34       * @return the status result.
35       */
36      Status getStatus();
37  
38      /**
39       * @param errors
40       *          the error list.
41       */
42      void setErrors(List<EbXMLRegistryError> errors);
43      
44      /**
45       * @return the error list.
46       */
47      List<EbXMLRegistryError> getErrors();
48  
49      /**
50       * @return the ebXML object being wrapped by this class.
51       */
52      Object getInternal();
53  }