org.makumba.providers.datadefinition.mdd
Class MDDNode

java.lang.Object
  extended by antlr.BaseAST
      extended by antlr.CommonAST
          extended by org.makumba.providers.datadefinition.mdd.MDDNode
All Implemented Interfaces:
antlr.collections.AST, Serializable

public class MDDNode
extends antlr.CommonAST

AST node that collects information for building a DataDefinition

Version:
$Id: MDDNode.java,v 1.1 May 3, 2009 8:01:07 PM manu Exp $
Author:
Manuel Gay
See Also:
Serialized Form

Field Summary
(package private) static String createName
           
protected  String fieldNameInParent
          name of the field in the parent MDD, if this is a ptrOne or setComplex
protected  LinkedHashMap<String,FieldNode> fields
           
protected  LinkedHashMap<String,DataDefinition.QueryFragmentFunction> functions
           
protected  String indexName
          name of the index field
protected  boolean isFileSubfield
          indicator if this is MDD is a file subfield
(package private) static String modifyName
           
protected  LinkedHashMap<Object,DataDefinition.MultipleUniqueKeyDefinition> multiFieldUniqueList
           
protected  String name
          name of the data definition
protected  URL origin
          origin of the data definition
protected  String parent
          name of the parent MDD of the subfield
protected  String ptrSubfield
          name of the pointer to the subfield, for building names dynamically
protected  TitleFieldNode titleField
          the title field
protected  LinkedHashMap<String,ValidationRule> validationRules
           
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
MDDNode(MDDNode parent, String subFieldName)
          constructor for the creation of subfields
MDDNode(String name, URL origin)
           
 
Method Summary
 void addField(FieldNode fi)
           
 void addFunction(FunctionNode funct, antlr.collections.AST parsedFunction)
           
 void addMultiUniqueKey(DataDefinition.MultipleUniqueKeyDefinition definition)
           
 void addValidationRule(ValidationRuleNode vn)
           
 String getName()
           
 void removeField(String name)
           
 void setName(String name)
           
protected  void setTitleField(TitleFieldNode title)
           
 String toString()
           
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, initialize, setText, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

createName

static final String createName
See Also:
Constant Field Values

modifyName

static final String modifyName
See Also:
Constant Field Values

name

protected String name
name of the data definition


ptrSubfield

protected String ptrSubfield
name of the pointer to the subfield, for building names dynamically


indexName

protected String indexName
name of the index field


titleField

protected TitleFieldNode titleField
the title field


origin

protected URL origin
origin of the data definition


parent

protected String parent
name of the parent MDD of the subfield


fieldNameInParent

protected String fieldNameInParent
name of the field in the parent MDD, if this is a ptrOne or setComplex


isFileSubfield

protected boolean isFileSubfield
indicator if this is MDD is a file subfield


fields

protected LinkedHashMap<String,FieldNode> fields

validationRules

protected LinkedHashMap<String,ValidationRule> validationRules

multiFieldUniqueList

protected LinkedHashMap<Object,DataDefinition.MultipleUniqueKeyDefinition> multiFieldUniqueList

functions

protected LinkedHashMap<String,DataDefinition.QueryFragmentFunction> functions
Constructor Detail

MDDNode

public MDDNode(String name,
               URL origin)

MDDNode

public MDDNode(MDDNode parent,
               String subFieldName)
constructor for the creation of subfields

Method Detail

setName

public void setName(String name)

getName

public String getName()

setTitleField

protected void setTitleField(TitleFieldNode title)

addField

public void addField(FieldNode fi)

removeField

public void removeField(String name)

addValidationRule

public void addValidationRule(ValidationRuleNode vn)

addMultiUniqueKey

public void addMultiUniqueKey(DataDefinition.MultipleUniqueKeyDefinition definition)

addFunction

public void addFunction(FunctionNode funct,
                        antlr.collections.AST parsedFunction)

toString

public String toString()
Specified by:
toString in interface antlr.collections.AST
Overrides:
toString in class antlr.BaseAST