All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDIItemSyntacticToken

java.lang.Object
   |
   +----com.las.ogdi.OGDISyntacticToken
           |
           +----com.las.ogdi.OGDIItemSyntacticToken

public class OGDIItemSyntacticToken
extends OGDISyntacticToken
The ItemSyntacticToken class defines tokens for dictionary items of an OGDI request.

Version:
1.0
Author:
Las Inc.

Constructor Index

 o OGDIItemSyntacticToken(int, int, String)
Creates an ItemSyntacticToken instance.

Method Index

 o getDescription()
Returns the definition of this token.
 o getFather()
Returns the index of the SyntacticToken that should be the father of the item.
 o getLevel()
Gets the level in the dictionary tree.
 o toString()
Gets the complete description.

Constructors

 o OGDIItemSyntacticToken
 public OGDIItemSyntacticToken(int level,
                               int father,
                               String description)
Creates an ItemSyntacticToken instance.

Parameters:
level - the level value.
father - index of the father in the tokens
desc - description of the token.
Returns:
no return
Throws: IllegalArgumentException
if item is badly formatted

Methods

 o getLevel
 public int getLevel()
Gets the level in the dictionary tree.

Parameters:
no - parameter
Returns:
the level (0 denotes a lowest hierarchy item)
Throws: no
exception
 o getFather
 public int getFather()
Returns the index of the SyntacticToken that should be the father of the item. 0 denotes the first token. Returns the index of the father, -1 if there is no father.

Parameters:
no - parameter
Returns:
the father index
Throws: no
exception
 o getDescription
 public String getDescription()
Returns the definition of this token.

Parameters:
no - parameter
Returns:
the definition
Throws: no
exception
 o toString
 public String toString()
Gets the complete description.

Parameters:
no - parameter
Returns:
the description, level and father as a string
Throws: no
exception
Overrides:
toString in class OGDISyntacticToken

All Packages  Class Hierarchy  This Package  Previous  Next  Index