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
public abstract static class DefaultDef.RegexMapper extends DefaultDef.Base
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
id
DefaultDef.Regex[]
regexs
This is an array of Regex.-
Fields inherited from class mondrian.rolap.aggmatcher.DefaultDef.Base
enabled
-
-
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 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 Detail
-
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.
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eigenbase.xom.NodeDef
- Overrides:
getName
in classDefaultDef.Base
-
display
public void display(PrintWriter _out, int _indent)
- 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
public boolean displayDiff(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)
- Overrides:
displayDiff
in classDefaultDef.Base
-
getTag
protected String getTag()
- Specified by:
getTag
in classDefaultDef.Base
-
validate
public void validate(DefaultDef.AggRules rules, MessageRecorder msgRecorder)
- Specified by:
validate
in classDefaultDef.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)
-
-