mondrian.rolap.aggmatcher
Class DefaultDef.NameMatcher
java.lang.Object
org.eigenbase.xom.ElementDef
mondrian.rolap.aggmatcher.DefaultDef.Base
mondrian.rolap.aggmatcher.DefaultDef.CaseMatcher
mondrian.rolap.aggmatcher.DefaultDef.NameMatcher
- All Implemented Interfaces:
- Serializable, Cloneable, NodeDef
- Direct Known Subclasses:
- DefaultDef.FactCountMatch, DefaultDef.ForeignKeyMatch, DefaultDef.TableMatch
- Enclosing class:
- DefaultDef
public abstract static class DefaultDef.NameMatcher
- extends DefaultDef.CaseMatcher
A NameMatcher is a CaseMatcher that prepends and appends
regular expressions to a given string as part of creating
the matching regular expression. Both the pre/post
regular expression can be null in which case matches are
applied simply against the name (modulo case considerations).
The purpose of this class is to allow aggregate tables to
be identified when their table names are formed by placing
text before and/or after the base fact table name.
- See Also:
- Serialized Form
-
-
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, getMixedChildren_new, getMixedChildren, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual |
pretemplate
public String pretemplate
posttemplate
public String posttemplate
basename
public String basename
baseNamePattern
Pattern baseNamePattern
DefaultDef.NameMatcher
public DefaultDef.NameMatcher()
DefaultDef.NameMatcher
public DefaultDef.NameMatcher(DOMWrapper _def)
throws XOMException
- Throws:
XOMException
getName
public String getName()
- Specified by:
getName
in interface NodeDef
- Overrides:
getName
in class DefaultDef.CaseMatcher
display
public void display(PrintWriter _out,
int _indent)
- Specified by:
display
in interface NodeDef
- Overrides:
display
in class DefaultDef.CaseMatcher
displayXML
public void displayXML(XMLOutput _out,
int _indent)
- Specified by:
displayXML
in interface NodeDef
- Overrides:
displayXML
in class DefaultDef.CaseMatcher
displayDiff
public boolean displayDiff(ElementDef _other,
PrintWriter _out,
int _indent)
- Overrides:
displayDiff
in class DefaultDef.CaseMatcher
validate
public void validate(DefaultDef.AggRules rules,
MessageRecorder msgRecorder)
- Overrides:
validate
in class DefaultDef.CaseMatcher
getRegex
public String getRegex(String name)
- Generates a regular expression string by prepending and
appending regular expression to the parameter tableName.
- Parameters:
name
- Table name
- Returns:
- regular expression
getMatcher
protected Recognizer.Matcher getMatcher(String name)