View Javadoc

1   package fr.ove.openmath.jome.formaters.om;
2   
3   import fr.ove.utils.CachingResourcesManager;
4   
5   /***
6   * The resources manager for the rendering formula.<BR>
7   * The different resources take the following syntax : (see the resources files for more details)
8   *       modelId = formaterName:cdName:symbolName
9   *
10  * @author © 2000 DIRAT Laurent
11  * @version 2.0  07/01/2000
12  */
13  public class OpenMathFormaterResoucesManager extends CachingResourcesManager {
14      /***
15      * The Constructor.
16      * @param resourcesName the name of the resources file.
17      */
18      public OpenMathFormaterResoucesManager(String resourcesName) {
19          super(resourcesName);
20      }
21      
22      /***
23      * Returns the formater name of the specified property.
24      * @param property the specified property
25      */
26      public String getFormater(String property) {
27          return accessResource(property, 0);
28      }
29      
30      /***
31      * Returns the cd name of the specified property.
32      * @param property the specified property
33      */
34      public String getCdName(String property) {
35          return accessResource(property, 1);        
36      }
37      
38      /***
39      * Returns the symbol name of the specified property.
40      * @param property the specified property
41      */
42      public String getSymbolName(String property) {
43          return accessResource(property, 2);        
44      }
45  }