arom.kr.parser.standard
Class AromDocTreeNode
java.lang.Object
|
+--arom.kr.parser.standard.SimpleNode
|
+--arom.kr.parser.standard.AromTreeNode
|
+--arom.kr.parser.standard.AromDocTreeNode
- All Implemented Interfaces:
- arom.kr.parser.standard.Node
- Direct Known Subclasses:
- AromInstanceNode, AromKnowledgeBaseNode, AromSlotNode, AromStructureNode
- public class AromDocTreeNode
- extends AromTreeNode
AromDocTreeNode.java
This class is the common generic class for all Arom Nodes which defines a
documentation.
Created: Thu Jan 17 13:25:19 2002
- Author:
- Veronique DUPIERRIS
Method Summary |
String |
getDocumentation(int type)
Get the specified type documentation of the represented knowledge base. |
int |
getDocumentationType()
Get an integer indicating which documentation have been set.
|
void |
setDocumentation(String doc,
int type)
Set the documentation of the knowledge base represented
by this node. |
Methods inherited from class arom.kr.parser.standard.SimpleNode |
jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString |
DOCUMENTATION_NONE
public static int DOCUMENTATION_NONE
DOCUMENTATION_TEXT
public static int DOCUMENTATION_TEXT
DOCUMENTATION_URL
public static int DOCUMENTATION_URL
AromDocTreeNode
public AromDocTreeNode(int id)
AromDocTreeNode
public AromDocTreeNode(arom.kr.parser.standard.StandardParser p,
int id)
setDocumentation
public void setDocumentation(String doc,
int type)
- Set the documentation of the knowledge base represented
by this node.
- Parameters:
doc
- the documentation of the knowledge base.type
- the type of the documentation to set, text or url
getDocumentation
public String getDocumentation(int type)
- Get the specified type documentation of the represented knowledge base.
- Parameters:
type
- the type of the requested documentation, text or URL
- Returns:
- the documentation of the knowledge base.
getDocumentationType
public int getDocumentationType()
- Get an integer indicating which documentation have been set.
if returned type | DOCUMENTATION_TEXT = DOCUMENTATION_TEXT
then text Doc has been provided.
if returned type | DOCUMENTATION_URL = DOCUMENTATION_URL
then URL Doc has been provided.