Class DefaultDef.RegexMapper

java.lang.Object
org.eigenbase.xom.ElementDef
mondrian.rolap.aggmatcher.DefaultDef.Base
mondrian.rolap.aggmatcher.DefaultDef.RegexMapper
All Implemented Interfaces:
Serializable, Cloneable, org.eigenbase.xom.NodeDef
Direct Known Subclasses:
DefaultDef.IgnoreMap, DefaultDef.LevelMap, DefaultDef.MeasureMap
Enclosing class:
DefaultDef

public abstract static class DefaultDef.RegexMapper extends DefaultDef.Base
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    This is an array of Regex.

    Fields inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base

    enabled
  • Constructor Summary

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

    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)
     
     
    protected String
     
    protected abstract String[]
    This must be defined in derived classes.
    void
     

    Methods inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base

    isEnabled

    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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public String id
    • 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 Details

    • RegexMapper

      public RegexMapper()
    • RegexMapper

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

    • 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
    • displayDiff

      public boolean displayDiff(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)
      Overrides:
      displayDiff in class DefaultDef.Base
    • getTag

      protected String getTag()
      Specified by:
      getTag in class DefaultDef.Base
    • validate

      public void validate(DefaultDef.AggRules rules, MessageRecorder msgRecorder)
      Specified by:
      validate 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)