Package 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
,org.eigenbase.xom.NodeDef
- Direct Known Subclasses:
DefaultDef.FactCountMatch
,DefaultDef.ForeignKeyMatch
,DefaultDef.TableMatch
- Enclosing class:
- DefaultDef
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:
-
Field Summary
Fields inherited from class mondrian.rolap.aggmatcher.DefaultDef.CaseMatcher
_charcase_values, charcase, id
Fields inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base
enabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 name) getName()
Generates a regular expression string by prepending and appending regular expression to the parameter tableName.void
validate
(DefaultDef.AggRules rules, MessageRecorder msgRecorder) Methods inherited from class mondrian.rolap.aggmatcher.DefaultDef.CaseMatcher
getCharCase, getId, getTag
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
-
Field Details
-
pretemplate
-
posttemplate
-
basename
-
-
Constructor Details
-
NameMatcher
public NameMatcher() -
NameMatcher
public NameMatcher(org.eigenbase.xom.DOMWrapper _def) throws org.eigenbase.xom.XOMException - Throws:
org.eigenbase.xom.XOMException
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
getName
in classDefaultDef.CaseMatcher
-
display
- Specified by:
display
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
display
in classDefaultDef.CaseMatcher
-
displayXML
public void displayXML(org.eigenbase.xom.XMLOutput _out, int _indent) - Specified by:
displayXML
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
displayXML
in classDefaultDef.CaseMatcher
-
displayDiff
- Overrides:
displayDiff
in classDefaultDef.CaseMatcher
-
validate
- Overrides:
validate
in classDefaultDef.CaseMatcher
-
getRegex
Generates a regular expression string by prepending and appending regular expression to the parameter tableName.- Parameters:
name
- Table name- Returns:
- regular expression
-
getMatcher
-