Skip navigation links


com.essbase.eas.essbase.ui.outline.members.formula.template
Class FormulaTemplateXMLParser

java.lang.Object
  extended by com.essbase.eas.essbase.ui.outline.members.formula.template.FormulaTemplateXMLParser


public class FormulaTemplateXMLParser
extends java.lang.Object

ASO Formula template XML Parser This is the core XMLparser which parses the template XML and creates necessary data structures which are used for rendering the UI of the formula.

Author:
Karthik K

Constructor Summary
FormulaTemplateXMLParser(java.io.InputStream in)
          Reads the template from an input stream
FormulaTemplateXMLParser(java.lang.String file)
          Reads the template from a file

 

Method Summary
 char getAttributeValueAsChar(org.w3c.dom.Node node, java.lang.String attrName)
           
 java.util.Hashtable getCategoryDefinitions()
           
 CFormulaTemplate[] getFormulaTemplates()
           
 java.util.Hashtable getTypeDefinitions()
           
 boolean isFormulaTemplateMatching(java.lang.String formulaText, CFormulaTemplate template)
          Matches a formula text against a template.
 void parse()
          Parse routine.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

FormulaTemplateXMLParser

public FormulaTemplateXMLParser(java.lang.String file)
Reads the template from a file
Parameters:
file -

FormulaTemplateXMLParser

public FormulaTemplateXMLParser(java.io.InputStream in)
                         throws java.lang.Exception
Reads the template from an input stream
Throws:
java.lang.Exception

Method Detail

parse

public void parse()
           throws java.lang.Exception
Parse routine.
Throws:
java.lang.Exception

getAttributeValueAsChar

public char getAttributeValueAsChar(org.w3c.dom.Node node,
                                    java.lang.String attrName)

getFormulaTemplates

public CFormulaTemplate[] getFormulaTemplates()

getTypeDefinitions

public java.util.Hashtable getTypeDefinitions()

getCategoryDefinitions

public java.util.Hashtable getCategoryDefinitions()

isFormulaTemplateMatching

public boolean isFormulaTemplateMatching(java.lang.String formulaText,
                                         CFormulaTemplate template)
Matches a formula text against a template. This method is used for identifying the template from which a formula was generated. This is done by converting the the template to a full fledged regular expression and then comparing it with the formula string.

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.