Class DefaultDef.RegexMapper

    • Constructor Summary

      Constructors 
      Constructor Description
      RegexMapper()  
      RegexMapper​(org.eigenbase.xom.DOMWrapper _def)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void display​(PrintWriter _out, int _indent)  
      boolean displayDiff​(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)  
      void displayXML​(org.eigenbase.xom.XMLOutput _out, int _indent)  
      protected mondrian.rolap.aggmatcher.Recognizer.Matcher getMatcher​(String[] names)  
      String getName()  
      protected String getTag()  
      protected abstract String[] getTemplateNames()
      This must be defined in derived classes.
      void validate​(DefaultDef.AggRules rules, MessageRecorder msgRecorder)  
      • Methods inherited from class org.eigenbase.xom.ElementDef

        addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getChildren, getElementChildren, getElementClass, getLocation, getMixedChildren, getMixedChildren_new, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
    • Field Detail

      • regexs

        public DefaultDef.Regex[] regexs
        This is an array of Regex. A match occurs if any one of the Regex matches; it is the equivalent of or-ing the regular expressions together. A candidate string is processed sequentially by each Regex in their document order until one matches. In none match, well, none match.
    • Constructor Detail

      • RegexMapper

        public RegexMapper()
      • RegexMapper

        public RegexMapper​(org.eigenbase.xom.DOMWrapper _def)
                    throws org.eigenbase.xom.XOMException
        Throws:
        org.eigenbase.xom.XOMException
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.eigenbase.xom.NodeDef
        Overrides:
        getName in class DefaultDef.Base
      • display

        public void display​(PrintWriter _out,
                            int _indent)
        Specified by:
        display in interface org.eigenbase.xom.NodeDef
        Overrides:
        display in class DefaultDef.Base
      • displayXML

        public void displayXML​(org.eigenbase.xom.XMLOutput _out,
                               int _indent)
        Specified by:
        displayXML in interface org.eigenbase.xom.NodeDef
        Overrides:
        displayXML in class DefaultDef.Base
      • getTemplateNames

        protected abstract String[] getTemplateNames()
        This must be defined in derived classes. It returns an array of symbolic names that are the symbolic names allowed to appear in the regular expression templates.
        Returns:
        array of symbol names
      • getMatcher

        protected mondrian.rolap.aggmatcher.Recognizer.Matcher getMatcher​(String[] names)