All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.las.ogdi.OGDISyntaxModel

java.lang.Object
   |
   +----com.las.ogdi.OGDISyntaxModel

public class OGDISyntaxModel
extends Object
The SyntaxModel provides information to automatically generate requests using the OGDIDictionary. Note : a simple specification that models substitution patterns.

Version:
1.0
Author:
Las Inc.
See Also:
OGDIDictionary

Constructor Index

 o OGDISyntaxModel(Vector)
Creates a SyntaxModel instance.

Method Index

 o getRequest(Object[])
Generates a request.
 o getTokens()
Returns a list of syntax tokens that describe the separators and members of a request.
 o toString()
Gets the complete syntax model.

Constructors

 o OGDISyntaxModel
 public OGDISyntaxModel(Vector tokens)
Creates a SyntaxModel instance.

Parameters:
a - table of syntactic tokens (from left to right)
Returns:
no return
Throws: IllegalArgumentException
if tokens are null

Methods

 o getTokens
 public Vector getTokens()
Returns a list of syntax tokens that describe the separators and members of a request.

Parameters:
no - parameter
Returns:
the elements of the Vector are instances of OGDISyntacticToken
Throws: no
exception
See Also:
OGDISyntacticToken
 o getRequest
 public String getRequest(Object elements[]) throws OGDIException
Generates a request.

Parameters:
elements - the elements are instances of OGDIDictionaryItem or of String
Returns:
the request as a string
Throws: IllegalArgumentException
if an element is null or of the wrong type
Throws: OGDIException
if the elements don't fit the syntactic construction
 o toString
 public String toString()
Gets the complete syntax model.

Parameters:
no - parameter
Returns:
the list of tokens for the syntax
Throws: no
exception
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index