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.
-
OGDIItemSyntacticToken(int, int, String)
- Creates an ItemSyntacticToken instance.
-
getDescription()
- Returns the definition of this token.
-
getFather()
- Returns the index of the SyntacticToken that should be the father
of the item.
-
getLevel()
- Gets the level in the dictionary tree.
-
toString()
- Gets the complete description.
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
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
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
getDescription
public String getDescription()
- Returns the definition of this token.
- Parameters:
- no - parameter
- Returns:
- the definition
- Throws: no
- exception
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