mondrian.rolap.aggmatcher
Class DefaultDef.Mapper

java.lang.Object
  extended by org.eigenbase.xom.ElementDef
      extended by mondrian.rolap.aggmatcher.DefaultDef.Base
          extended by mondrian.rolap.aggmatcher.DefaultDef.CaseMatcher
              extended by mondrian.rolap.aggmatcher.DefaultDef.Mapper
All Implemented Interfaces:
Serializable, Cloneable, NodeDef
Enclosing class:
DefaultDef

public abstract static class DefaultDef.Mapper
extends DefaultDef.CaseMatcher

This allows one to create an element that matches against a single template, where the template is an attribute. While much loved, this is currently not used.

See Also:
Serialized Form
 

Field Summary
protected static int BAD_ID
           
 String dot
           
 String space
           
 String template
           
protected  int[] templateNamePos
           
protected  String[] templateParts
           
 
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
DefaultDef.Mapper()
           
DefaultDef.Mapper(DOMWrapper _def)
           
 
Method Summary
 void display(PrintWriter _out, int _indent)
           
 boolean displayDiff(ElementDef _other, PrintWriter _out, int _indent)
           
 void displayXML(XMLOutput _out, int _indent)
           
 String getDot()
           
protected  Recognizer.Matcher getMatcher(String[] names)
           
 String getName()
           
 String getRegex(String[] names)
           
 String getSpace()
           
 String getTemplate()
           
protected abstract  String[] getTemplateNames()
           
 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, getMixedChildren_new, getMixedChildren, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

template

public String template

space

public String space

dot

public String dot

BAD_ID

protected static final int BAD_ID
See Also:
Constant Field Values

templateParts

protected String[] templateParts

templateNamePos

protected int[] templateNamePos
Constructor Detail

DefaultDef.Mapper

public DefaultDef.Mapper()

DefaultDef.Mapper

public DefaultDef.Mapper(DOMWrapper _def)
                  throws XOMException
Throws:
XOMException
Method Detail

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

getTemplate

public String getTemplate()

getSpace

public String getSpace()

getDot

public String getDot()

validate

public void validate(DefaultDef.AggRules rules,
                     MessageRecorder msgRecorder)
Overrides:
validate in class DefaultDef.CaseMatcher

getTemplateNames

protected abstract String[] getTemplateNames()

getRegex

public String getRegex(String[] names)

getMatcher

protected Recognizer.Matcher getMatcher(String[] names)

SourceForge.net_Logo