View Javadoc

1   /* ===================================================================
2    * Copyright 2002-04 SRI International.
3    * Released under the MOZILLA PUBLIC LICENSE Version 1.1
4    * which can be obtained at http://www.mozilla.org/MPL/MPL-1.1.html
5    * This software is distributed on an "AS IS"
6    * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
7    * See the License for the specific language governing rights and
8    * limitations under the License.
9    * =================================================================== */
10  package com.sri.emo.dbobj;
11  
12  
13  /***
14   * parts of an object
15   */
16  public interface AbstractParts {
17      public static final String REFERENCES = "REFERENCES";
18      public static final String ONLINE_RESOURCE = "ONLINE_RESOURCE";
19      public static final String MISCELLANEOUS_ASSOCIATIONS = "MISCELLANEOUS_ASSOCIATIONS";
20  
21      /***
22       * order of parts is important--will be used as layout order,
23       * and the number of each attribute in this list will be used to
24       * encode/decode the field name as a fixed string + num.
25       * <p/>
26       * why?
27       * <p/>
28       * necessary since the JSP doesn't know anything, but
29       * must iterate to display attributes and send back edits with some discernable
30       * connection between input text and attribute destination.
31       *
32       * @return a list of parts for paradigms
33       */
34      public PartDescriptor[] getParts();
35  }