org.makumba.providers.datadefinition.mdd
Class FieldNode

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

public class FieldNode
extends MDDAST

AST node that collects information about a MDD field

Version:
$Id: FieldNode.java,v 1.1 May 3, 2009 6:14:27 PM manu Exp $
Author:
Manuel Gay
See Also:
Serialized Form

Field Summary
protected  Vector<String> charEnumValues
           
protected  Vector<String> charEnumValuesDeprecated
           
protected  int charLength
           
protected  Object defaultValue
           
protected  String description
           
protected  boolean fixed
           
protected  LinkedHashMap<Integer,String> intEnumValues
           
protected  LinkedHashMap<Integer,String> intEnumValuesDeprecated
           
protected  MDDNode mdd
           
protected  String name
           
protected  String NaNError
           
protected  String notBooleanError
           
protected  boolean notEmpty
           
protected  String notEmptyError
           
protected  String notIntError
           
protected  boolean notNull
           
protected  String notNullError
           
protected  String notRealError
           
protected  String pointedType
           
protected  MDDNode subfield
           
protected  boolean unique
           
protected  String uniqueError
           
protected  String unknownType
           
protected  Hashtable<String,ValidationRule> validationRules
           
 
Fields inherited from class org.makumba.providers.datadefinition.mdd.MDDAST
makumbaType, wasIncluded
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
FieldNode(MDDNode mdd, String name)
           
FieldNode(MDDNode mdd, String name, antlr.collections.AST originAST)
          Constructor for FieldNode, originAST being an AST used for giving context to errors
 
Method Summary
 void addCharEnumValue(String text)
           
 void addCharEnumValueDeprecated(String text)
           
 void addIntEnumValue(int index, String text)
           
 void addIntEnumValueDeprecated(int index, String text)
           
 String getName()
           
 void initSetSubfield()
           
 MDDNode initSubfield()
           
 String toString()
           
 
Methods inherited from class org.makumba.providers.datadefinition.mdd.MDDAST
getColumn, getLine, initialize, initialize, setCol, setLine
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, setText, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, 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

mdd

protected MDDNode mdd

name

protected String name

description

protected String description

unknownType

protected String unknownType

defaultValue

protected transient Object defaultValue

fixed

protected boolean fixed

notNull

protected boolean notNull

notEmpty

protected boolean notEmpty

unique

protected boolean unique

notNullError

protected String notNullError

NaNError

protected String NaNError

uniqueError

protected String uniqueError

notEmptyError

protected String notEmptyError

notIntError

protected String notIntError

notRealError

protected String notRealError

notBooleanError

protected String notBooleanError

intEnumValues

protected LinkedHashMap<Integer,String> intEnumValues

intEnumValuesDeprecated

protected LinkedHashMap<Integer,String> intEnumValuesDeprecated

charEnumValues

protected Vector<String> charEnumValues

charEnumValuesDeprecated

protected Vector<String> charEnumValuesDeprecated

charLength

protected int charLength

pointedType

protected String pointedType

subfield

protected MDDNode subfield

validationRules

protected Hashtable<String,ValidationRule> validationRules
Constructor Detail

FieldNode

public FieldNode(MDDNode mdd,
                 String name)

FieldNode

public FieldNode(MDDNode mdd,
                 String name,
                 antlr.collections.AST originAST)
Constructor for FieldNode, originAST being an AST used for giving context to errors

Method Detail

getName

public String getName()

addIntEnumValue

public void addIntEnumValue(int index,
                            String text)

addIntEnumValueDeprecated

public void addIntEnumValueDeprecated(int index,
                                      String text)

addCharEnumValue

public void addCharEnumValue(String text)

addCharEnumValueDeprecated

public void addCharEnumValueDeprecated(String text)

initSubfield

public MDDNode initSubfield()

initSetSubfield

public void initSetSubfield()

toString

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