View Javadoc

1   package fr.ove.openmath.jome.formaters.mml;
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:elementName
9   *
10  * @author © 2000 DIRAT Laurent
11  * @version 1.0 23/05/2000
12  */
13  public class MathMLFormaterResoucesManager extends CachingResourcesManager {
14      /***
15      * The Constructor.
16      * @param resourcesName the name of the resources file.
17      */
18      public MathMLFormaterResoucesManager(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 element name.
32      * @param property the specified property
33      */
34      public String getElementName(String property) {
35          return accessResource(property, 1);
36      }
37  }