AROM-2_2_13

arom.kr.parser.standard
Class AromInstanceNode

java.lang.Object
  |
  +--arom.kr.parser.standard.SimpleNode
        |
        +--arom.kr.parser.standard.AromTreeNode
              |
              +--arom.kr.parser.standard.AromDocTreeNode
                    |
                    +--arom.kr.parser.standard.AromInstanceNode
All Implemented Interfaces:
arom.kr.parser.standard.Node

public class AromInstanceNode
extends AromDocTreeNode

AromInstanceNode.java This class is the used to represent Arom Instances nodes. It defines the name of the instance's owner and it's documentation. Created: Mon Sep 10 13:58:58 2001

Author:
Veronique DUPIERRIS

Field Summary
static int OBJECT_NODE
          A value of instance node type. the instance represents an Arom Object.
static String TUPLE_NAME
          Value of this node name if the node type is TUPLE_NODE.
static int TUPLE_NODE
          A value of instance node type. the instance represents an Arom Tuple.
 
Fields inherited from class arom.kr.parser.standard.AromDocTreeNode
DOCUMENTATION_NONE, DOCUMENTATION_TEXT, DOCUMENTATION_URL
 
Constructor Summary
AromInstanceNode(int id)
           
AromInstanceNode(arom.kr.parser.standard.StandardParser p, int id)
           
 
Method Summary
 Object childrenAccept(arom.kr.parser.standard.StandardParserVisitor visitor, Object data)
           
 void dump(String prefix)
           
 int getNodeType()
          Return the type of the instance represented by this node
 String getOwner()
          Get the name of the strcuture this instance belongs to.
 Map getSlotsValues()
          Get the Map of all slots name and the values associated to them for this instance.
 Object jjtAccept(arom.kr.parser.standard.StandardParserVisitor visitor, Object data)
           
 void setNodeType(int type)
          Set the type of the instance represented by this node.
 void setOwner(String owner)
          Set the name of the structure this instance belongs to.
 void setSlotEntry(String slotName, Object slotValue)
          Set the specified value to the specified slot for this instance.
 String toString()
           
 
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
 

Field Detail

OBJECT_NODE

public static final int OBJECT_NODE
A value of instance node type. the instance represents an Arom Object.

See Also:
Constant Field Values

TUPLE_NODE

public static final int TUPLE_NODE
A value of instance node type. the instance represents an Arom Tuple.

See Also:
Constant Field Values

TUPLE_NAME

public static final String TUPLE_NAME
Value of this node name if the node type is TUPLE_NODE.

See Also:
Constant Field Values
Constructor Detail

AromInstanceNode

public AromInstanceNode(int id)

AromInstanceNode

public AromInstanceNode(arom.kr.parser.standard.StandardParser p,
                        int id)
Method Detail

setOwner

public void setOwner(String owner)
Set the name of the structure this instance belongs to.

Parameters:
owner - the name of this instance owner

getOwner

public String getOwner()
Get the name of the strcuture this instance belongs to.

Returns:
the name of this instance owner.

setNodeType

public void setNodeType(int type)
                 throws arom.kr.parser.standard.ParseException
Set the type of the instance represented by this node.

Parameters:
type - the Type of this instance.
Throws:
ParseException - if the type is unknown.

getNodeType

public int getNodeType()
Return the type of the instance represented by this node

Returns:
the instance type.

setSlotEntry

public void setSlotEntry(String slotName,
                         Object slotValue)
                  throws arom.kr.parser.standard.ParseException
Set the specified value to the specified slot for this instance.

Parameters:
slotName - the name of the slot the specified value is associated to
slotValue - the value to associate to the specifed slot.
Throws:
ParseException - if a value has already been set for the slot.

getSlotsValues

public Map getSlotsValues()
Get the Map of all slots name and the values associated to them for this instance.

Returns:
the map between slots name and their value.

toString

public String toString()
Overrides:
toString in class AromTreeNode

dump

public void dump(String prefix)
Overrides:
dump in class AromTreeNode

jjtAccept

public Object jjtAccept(arom.kr.parser.standard.StandardParserVisitor visitor,
                        Object data)
Specified by:
jjtAccept in interface arom.kr.parser.standard.Node
Overrides:
jjtAccept in class AromTreeNode

childrenAccept

public Object childrenAccept(arom.kr.parser.standard.StandardParserVisitor visitor,
                             Object data)
Overrides:
childrenAccept in class AromTreeNode

AROM-2_2_13