View Javadoc
1   /*
2    * Copyright (c) 2002-2014, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.document.modules.calendar.business;
35  
36  
37  /**
38   *
39   * class MappingAttribute
40   *
41   */
42  public class MappingAttribute
43  {
44      private int _nIdMappingAttribute;
45      private String _strCodeDocumentType;
46      private int _nIdDocumentAttribute;
47      private String _strDocumentAttributeDescription;
48      private int _nIdCalendarAttribute;
49      private String _strCalendarAttributeDescription;
50      private String _strDocumentFeature;
51  
52      /**
53      * Returns the IdMappingAttribute
54      *
55      * @return The IdMappingAttribute
56      */
57      public int getId(  )
58      {
59          return _nIdMappingAttribute;
60      }
61  
62      /**
63       * Sets the IdMappingAttribute
64       *
65       * @param nIdMappingAttribute IdMappingAttribute
66       */
67      public void setId( int nIdMappingAttribute )
68      {
69          _nIdMappingAttribute = nIdMappingAttribute;
70      }
71  
72      /**
73       * set the Code of the document type of the mapping
74       * @param strCodeDocumentType the code of the document type
75       */
76      public void setCodeDocumentType( String strCodeDocumentType )
77      {
78          _strCodeDocumentType = strCodeDocumentType;
79      }
80  
81      /**
82      *
83      * @return the Code of the document type
84      */
85      public String getCodeDocumentType(  )
86      {
87          return _strCodeDocumentType;
88      }
89  
90      /**
91      * set the Id of the document attribute
92      * @param nIdDocumentAttribute the code of the document type
93      */
94      public void setIdDocumentAttribute( Integer nIdDocumentAttribute )
95      {
96          _nIdDocumentAttribute = nIdDocumentAttribute;
97      }
98  
99      /**
100     *
101     * @return the Id of the document attribute
102     */
103     public int getIdDocumentAttribute(  )
104     {
105         return _nIdDocumentAttribute;
106     }
107 
108     /**
109     * set the Description of the document attribute
110     * @param strDocumentAttributeDescription the description of the document attribute
111     */
112     public void setDocumentAttributeDescription( String strDocumentAttributeDescription )
113     {
114         _strDocumentAttributeDescription = strDocumentAttributeDescription;
115     }
116 
117     /**
118     *
119     * @return the Description of the document attribute
120     */
121     public String getDocumentAttributeDescription(  )
122     {
123         return _strDocumentAttributeDescription;
124     }
125 
126     /**
127      * set the Id of the calendar attribute
128      * @param nIdCalendarAttribute the id of the calendar attribute
129      */
130     public void setIdCalendarAttribute( Integer nIdCalendarAttribute )
131     {
132         _nIdCalendarAttribute = nIdCalendarAttribute;
133     }
134 
135     /**
136     *
137     * @return the Id of the calendar attribute
138     */
139     public int getIdCalendarAttribute(  )
140     {
141         return _nIdCalendarAttribute;
142     }
143 
144     /**
145     * set the Description of the calendar attribute
146     * @param strCalendarAttributeDescription the description of the calendar attribute
147     */
148     public void setCalendarAttributeDescription( String strCalendarAttributeDescription )
149     {
150         _strCalendarAttributeDescription = strCalendarAttributeDescription;
151     }
152 
153     /**
154     *
155     * @return the Description of the calendar attribute
156     */
157     public String getCalendarAttributeDescription(  )
158     {
159         return _strCalendarAttributeDescription;
160     }
161 
162     /**
163      * set the title of the document feature
164      * @param strDocumentFeature the title of the document feature
165      */
166     public void setDocumentFeature( String strDocumentFeature )
167     {
168         _strDocumentFeature = strDocumentFeature;
169     }
170 
171     /**
172     *
173     * @return the title of the document feature
174     */
175     public String getDocumentFeature(  )
176     {
177         return _strDocumentFeature;
178     }
179 }