Package mondrian.rolap.aggmatcher
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
- See Also:
-
Field Summary
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[] names) getName()
protected String
getTag()
protected abstract String[]
This must be defined in derived classes.void
validate
(DefaultDef.AggRules rules, MessageRecorder msgRecorder) 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
-
id
-
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
- Specified by:
getName
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
getName
in classDefaultDef.Base
-
display
- Specified by:
display
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
display
in classDefaultDef.Base
-
displayXML
public void displayXML(org.eigenbase.xom.XMLOutput _out, int _indent) - Specified by:
displayXML
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
displayXML
in classDefaultDef.Base
-
displayDiff
- Overrides:
displayDiff
in classDefaultDef.Base
-
getTag
- Specified by:
getTag
in classDefaultDef.Base
-
validate
- Specified by:
validate
in classDefaultDef.Base
-
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
-