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 org.openehealth.ipf.commons.ihe.xds.core.ExtraMetadataHolder;
19  import org.openehealth.ipf.commons.ihe.xds.core.metadata.AssociationType;
20  import org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus;
21  
22  /**
23   * Encapsulation of the ebXML classes for {@code AssociationType1}. 
24   * <p>
25   * This class contains convenience methods and provides a version independent
26   * abstraction of the ebXML data structure.
27   * @author Jens Riemschneider
28   */
29  public interface EbXMLAssociation extends EbXMLRegistryObject, ExtraMetadataHolder {
30      /**
31       * @return the id of the target object of this association.
32       */
33      String getTarget();
34      
35      /**
36       * @param target            
37       *          the id of the target object of this association.
38       */
39      void setTarget(String target);
40  
41      /**
42       * @return the id of the source object of this association.
43       */
44      String getSource();
45      
46      /**
47       * @param source
48       *          the id of the source object of this association.
49       */
50      void setSource(String source);
51  
52      /**
53       * @return the type of this association.
54       */
55      AssociationType getAssociationType();
56      
57      /**
58       * @param associationType
59       *          the type of this association.
60       */
61      void setAssociationType(AssociationType associationType);
62  
63      AvailabilityStatus getStatus();
64      void setStatus(AvailabilityStatus status);
65  
66      AvailabilityStatus getOriginalStatus();
67      void setOriginalStatus(AvailabilityStatus status);
68  
69      AvailabilityStatus getNewStatus();
70      void setNewStatus(AvailabilityStatus status);
71  
72      String getPreviousVersion();
73      void setPreviousVersion(String version);
74  }