|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--arom.kr.parser.standard.SimpleNode | +--arom.kr.parser.standard.AromTreeNode | +--arom.kr.parser.standard.AromDocTreeNode | +--arom.kr.parser.standard.AromSlotNode | +--arom.kr.parser.standard.AromVariableNode
AromVariableNode.java This class is the used to represent Arom Variables nodes. It defines the CType associated to this variable as well as other variables facets informations: Default value, unit, attachment.... Created: Fri Sep 14 15:39:01 2001
Field Summary |
Fields inherited from class arom.kr.parser.standard.AromDocTreeNode |
DOCUMENTATION_NONE, DOCUMENTATION_TEXT, DOCUMENTATION_URL |
Constructor Summary | |
AromVariableNode(int id)
|
|
AromVariableNode(arom.kr.parser.standard.StandardParser p,
int id)
|
Method Summary | |
Object |
childrenAccept(arom.kr.parser.standard.StandardParserVisitor visitor,
Object data)
|
boolean |
createAttachment()
Return true if the attachment method name should be created or not. |
void |
dump(String prefix)
|
String |
getAttachmentClassName()
Get the class name to run for attachment. |
String |
getAttachmentMethodName()
Get the method name to run for attachment. |
Integer[] |
getCard()
Get the bounds of the represented variable's cardinality. |
Object |
getDefault()
Get the default value associated to the represented variable. |
CType |
getSlotType()
Get the CType of the represented variable. |
boolean |
isCTypeListType()
Return true if the variable CType is a ListCT that should be constructed on Top DeltaType of the specified CType. |
boolean |
isTypeSet()
Return true if a CType has been set for the variable represented by this node. |
boolean |
isTypeSetType()
Return true if the variable CType is a SetCT that should be constructed on Top DeltaType of the specified CType. |
Object |
jjtAccept(arom.kr.parser.standard.StandardParserVisitor visitor,
Object data)
|
void |
setAttachmentClassName(String attachmentClass)
Set the names of the class to execute to run attachment |
void |
setAttachmentMethodName(String attachmentMethod)
Set the names of the method to execute to run attachment |
void |
setCard(Integer minCard,
Integer maxCard)
Set the bounds value of the represented variable cardinality. |
void |
setCreateAttachment(Boolean v)
Specify if the method to call for attachment should be created using AromClass and variable names. |
void |
setDefault(Object defValue)
Set the default value of the represented variable. |
void |
setListType(boolean isList)
Store information that the variable's CType is a ListCType or not. |
void |
setSetType(boolean isSet)
Store information that the variable's CType is a SetCType or not. |
void |
setSlotType(CType slotType)
Set the CType of the represented variable. |
String |
toString()
|
Methods inherited from class arom.kr.parser.standard.AromSlotNode |
getDomain, getDomainType, getTypeName, setDomain, setDomainType, setTypeName |
Methods inherited from class arom.kr.parser.standard.AromDocTreeNode |
getDocumentation, getDocumentationType, setDocumentation |
Methods inherited from class arom.kr.parser.standard.AromTreeNode |
getName, setName |
Methods inherited from class arom.kr.parser.standard.SimpleNode |
jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AromVariableNode(int id)
public AromVariableNode(arom.kr.parser.standard.StandardParser p, int id)
Method Detail |
public void setSlotType(CType slotType)
slotType
- the CType value to associate to the variable.public boolean isTypeSet()
public CType getSlotType()
public boolean isCTypeListType()
public void setListType(boolean isList)
isList
- is true is the variable's CType is a List CTypepublic boolean isTypeSetType()
public void setSetType(boolean isSet)
isSet
- is true is the variable's CType is a Set CTypepublic Object getDefault()
public void setDefault(Object defValue)
defValue
- the variable's default value.public boolean createAttachment()
public void setCreateAttachment(Boolean v)
public void setAttachmentClassName(String attachmentClass)
public String getAttachmentClassName()
public void setAttachmentMethodName(String attachmentMethod)
public String getAttachmentMethodName()
public Integer[] getCard()
public void setCard(Integer minCard, Integer maxCard) throws arom.kr.parser.standard.ParseException
arom.kr.parser.standard.ParseException
public String toString()
toString
in class AromSlotNode
public void dump(String prefix)
dump
in class AromSlotNode
public Object jjtAccept(arom.kr.parser.standard.StandardParserVisitor visitor, Object data)
jjtAccept
in interface arom.kr.parser.standard.Node
jjtAccept
in class AromSlotNode
public Object childrenAccept(arom.kr.parser.standard.StandardParserVisitor visitor, Object data)
childrenAccept
in class AromSlotNode
|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |