|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.providers.datadefinition.mdd.MDDFactory
public class MDDFactory
MDD factory, used to turn a .mdd file into a DataDefinition
.
This class calls the inital MDD parser, then walks over it and performs the analysis and finally transforms it again
in order to produce the DataDefinition
and its content.
Method Summary | |
---|---|
protected void |
doThrow(String typeName,
String message,
antlr.collections.AST ast)
Throws a DataDefinitionParseError based on the information returned by the MDDAST |
protected void |
doThrow(Throwable t,
antlr.collections.AST debugTree,
String typeName)
Throws a DataDefinitionParseError at parse time |
DataDefinition |
getDataDefinition(String typeName)
Gets the dataDefinition for a given MDD type |
static MDDFactory |
getInstance()
|
protected String |
getLine(int lineNumber,
String typeName)
|
DataDefinition |
getVirtualDataDefinition(String typeName,
String definition)
Gets the dataDefinition given a definition text |
protected MDDParser |
parse(String typeName,
String text)
parses a MDD text |
protected MDDParser |
parseIncludedDataDefinition(String includedName)
parses an included data definition (.idd) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MDDFactory getInstance()
public DataDefinition getDataDefinition(String typeName)
public DataDefinition getVirtualDataDefinition(String typeName, String definition)
protected MDDParser parse(String typeName, String text)
protected MDDParser parseIncludedDataDefinition(String includedName)
protected void doThrow(Throwable t, antlr.collections.AST debugTree, String typeName) throws DataDefinitionParseError
DataDefinitionParseError
at parse time
DataDefinitionParseError
protected void doThrow(String typeName, String message, antlr.collections.AST ast)
DataDefinitionParseError
based on the information returned by the MDDAST
protected String getLine(int lineNumber, String typeName)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |