Skip navigation links


com.essbase.eas.essbase.ui.scripting.autocomplete
Class ScriptingCommand

java.lang.Object
  extended by com.essbase.eas.ui.editor.misc.StatementCommand
      extended by com.essbase.eas.essbase.ui.scripting.autocomplete.ScriptingCommand

All Implemented Interfaces:
StatementToken, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ActiveAliasTables, AlgorithmNames, AllFilterNames, AppCalcNames, AppDatabaseNames, ApplicationNames, ApplicationNames.ApplicationName, AppNames, AppVariableNames, CalcAppDbNames, CalcNames, CreateFilter, CreateFilterAs, DatabaseCalcNames, DatabaseNames, DbCalcNames, DBNames, DBNames.DBName, DbVariableNames, FilterNames, FunctionNames, GroupNames, ImportDataSource, ImportRuleFiles, ImportRuleSource, ImportSourceFile, LocationAliases, LocationAliasName, MacroNames, MacroSignatures, MacroSignatures.MacroSignature, MacroSignatures.MacroSignatureEnd, MaxlFileName, MDXCommand, MiningResultNames, MiningTaskNames, ModelNames, MshFileNames, ObjectName, RefreshOutline, ServerVariableNames, SessionIds, SourceAreas, TriggerName, TriggerNames, UserNames, VariableNames

public class ScriptingCommand
extends StatementCommand
implements java.lang.Cloneable, java.io.Serializable

Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Sree Menon
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class com.essbase.eas.ui.editor.misc.StatementCommand
StatementCommand.WordListWindowPopup

 

Field Summary
static java.lang.String APPNAME
           
static java.lang.String CALCNAME
           
static java.lang.String DBNAME
           
static java.lang.String ESSBASESERVER
           
static java.lang.String FILTERNAME
           
static java.lang.String FUNCNAME
           
static java.lang.String GRPNAME
           
static java.lang.String MACRONAME
           
static java.lang.String USERNAME
           
static java.lang.String VARNAME
           

 

Fields inherited from class com.essbase.eas.ui.editor.misc.StatementCommand
ADDPROPERTY, BRACKETED, CLASS, COMMAND, COMMANDS, DONOTLIST, EOL, FORCE, ISFUNCTION, list, LOOP, LOOPCOMMAND, NAME, nameTokens, next, NEXT_COMMAND, NOTIFYCLASS, NOTIFYMETHOD, NOTIFYOBJECT, OPT_PROPERTY, OPTIONAL, options, OPTIONS, optionTokens, PARAN, parent, PREFIX, prefixTokens, QUOTED, REGISTER, SUFFIX, suffixTokens, table, TEXT, TRIGGER_NEXT

 

Constructor Summary
ScriptingCommand()
           
ScriptingCommand(java.lang.Object parent, java.lang.String name)
           
ScriptingCommand(java.lang.Object parent, java.lang.String name, boolean lastToken)
           
ScriptingCommand(java.lang.Object parent, java.lang.String name, boolean lastToken, boolean optional)
           

 

Method Summary
 java.lang.Object clone()
           
protected  boolean compareTokens(java.lang.String[] text, java.lang.String[] comp)
           
protected  StatementCommand createOptionCommand(int index)
           
protected  Application getApplication(Server server, java.util.Properties p)
           
protected  Application getApplication(StatementContext context)
           
protected  Application getApplication(StatementContext context, java.util.Properties p)
           
protected  Application getApplication(StatementContext context, java.lang.String appname)
           
protected  Application[] getApplications(StatementContext context)
           
 boolean getChildNotifyObjects(java.util.List tokenList, int startindex, java.util.Properties p, java.util.List v, Server server)
           
 java.lang.String getCurrentStatement(TextEditor editor)
           
protected  Database getDatabase(Server server, java.util.Properties p)
           
protected  Database getDatabase(StatementContext context)
           
protected  Database getDatabase(StatementContext context, java.util.Properties p)
           
protected  Database getDatabase(StatementContext context, java.util.Properties p, java.lang.String dbname)
           
protected  Database getDatabase(StatementContext context, java.lang.String appname, java.lang.String dbname)
           
protected  java.lang.String[] getNextTokens(java.util.List tokenList, int startindex, int count)
           
 boolean getNotifyObjects(java.util.List tokenList, int startindex, java.util.Properties p, java.util.List v, Server server)
           
 boolean getObjects(java.util.Properties p, java.util.List v, Server server, boolean bServer, boolean bApp, boolean bDatabase)
           
protected  java.lang.String getSafePrefix()
           
protected  java.lang.String getSafeSuffix()
           
protected  Server getSelectedServer(StatementContext context)
           
protected  java.util.List getTokenList(java.lang.String text)
           
protected  java.util.List getTokenListEx(java.lang.String text)
           
 boolean isLastToken()
          Returns true if its the last token of the command syntax
protected  boolean isNextToken(java.util.List tokenList, int startindex, java.lang.String s)
           
 int isToken(StatementContext context, int startindex)
          Returns the number of tokens matched by this command from the token list
protected  java.lang.String removeParanString(java.lang.String name)
           
 void setCompleteText(TextEditor editor, java.lang.String text, int startoffset)
          sets the completed word into the editor
 void setOptional(boolean optional)
           
 void setWordCompleteText(TextEditor editor, java.lang.String text, int startoffset)
           
 void showOptions(StatementContext context)
          Shows the options

 

Methods inherited from class com.essbase.eas.ui.editor.misc.StatementCommand
addAttribute, addCommand, addCommandOptions, addNameTokens, addNextCommands, addOptionCommands, addOptions, addOptionsTokens, canceledCommand, checkFix, clearAttributes, exportXml, findCommand, generateSpaces, getAttribute, getAttributes, getCommands, getCommandsParent, getCommandTable, getElements, getEndOfStatement, getKey, getLastStatementToken, getLineSep, getList, getName, getParent, getSafeKey, hasKey, insertCommand, isCommand, isForcedOption, isListEmpty, isOptional, isToken, newEditToken, put, removeAllCommands, removeAttribute, removeCommand, removeQuoteString, resetParent, resetSelection, setCompleteText, setCompleteText, setForcedOption, setName, setOptions, setParent, tokenListSize, toString, writeKeywordsToFile

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

DBNAME

public static final java.lang.String DBNAME
See Also:
Constant Field Values

APPNAME

public static final java.lang.String APPNAME
See Also:
Constant Field Values

VARNAME

public static final java.lang.String VARNAME
See Also:
Constant Field Values

CALCNAME

public static final java.lang.String CALCNAME
See Also:
Constant Field Values

FILTERNAME

public static final java.lang.String FILTERNAME
See Also:
Constant Field Values

FUNCNAME

public static final java.lang.String FUNCNAME
See Also:
Constant Field Values

GRPNAME

public static final java.lang.String GRPNAME
See Also:
Constant Field Values

MACRONAME

public static final java.lang.String MACRONAME
See Also:
Constant Field Values

USERNAME

public static final java.lang.String USERNAME
See Also:
Constant Field Values

ESSBASESERVER

public static final java.lang.String ESSBASESERVER
See Also:
Constant Field Values

Constructor Detail

ScriptingCommand

public ScriptingCommand()

ScriptingCommand

public ScriptingCommand(java.lang.Object parent,
                        java.lang.String name)

ScriptingCommand

public ScriptingCommand(java.lang.Object parent,
                        java.lang.String name,
                        boolean lastToken)

ScriptingCommand

public ScriptingCommand(java.lang.Object parent,
                        java.lang.String name,
                        boolean lastToken,
                        boolean optional)

Method Detail

isLastToken

public boolean isLastToken()
Description copied from interface: StatementToken
Returns true if its the last token of the command syntax
Specified by:
isLastToken in interface StatementToken
Overrides:
isLastToken in class StatementCommand

showOptions

public void showOptions(StatementContext context)
Description copied from class: StatementCommand
Shows the options
Specified by:
showOptions in interface StatementToken
Overrides:
showOptions in class StatementCommand

createOptionCommand

protected StatementCommand createOptionCommand(int index)
Overrides:
createOptionCommand in class StatementCommand

isToken

public int isToken(StatementContext context,
                   int startindex)
Description copied from interface: StatementToken
Returns the number of tokens matched by this command from the token list
Specified by:
isToken in interface StatementToken
Overrides:
isToken in class StatementCommand

getSelectedServer

protected Server getSelectedServer(StatementContext context)

getApplication

protected Application getApplication(StatementContext context)

getApplication

protected Application getApplication(Server server,
                                     java.util.Properties p)

getDatabase

protected Database getDatabase(StatementContext context)

getDatabase

protected Database getDatabase(Server server,
                               java.util.Properties p)

getDatabase

protected Database getDatabase(StatementContext context,
                               java.lang.String appname,
                               java.lang.String dbname)

getApplication

protected Application getApplication(StatementContext context,
                                     java.lang.String appname)

getApplication

protected Application getApplication(StatementContext context,
                                     java.util.Properties p)

getApplications

protected Application[] getApplications(StatementContext context)

getDatabase

protected Database getDatabase(StatementContext context,
                               java.util.Properties p)

getDatabase

protected Database getDatabase(StatementContext context,
                               java.util.Properties p,
                               java.lang.String dbname)

getSafePrefix

protected java.lang.String getSafePrefix()

getSafeSuffix

protected java.lang.String getSafeSuffix()

getNextTokens

protected java.lang.String[] getNextTokens(java.util.List tokenList,
                                           int startindex,
                                           int count)

compareTokens

protected boolean compareTokens(java.lang.String[] text,
                                java.lang.String[] comp)

isNextToken

protected boolean isNextToken(java.util.List tokenList,
                              int startindex,
                              java.lang.String s)

getTokenList

protected java.util.List getTokenList(java.lang.String text)

getTokenListEx

protected java.util.List getTokenListEx(java.lang.String text)

getCurrentStatement

public java.lang.String getCurrentStatement(TextEditor editor)

getChildNotifyObjects

public boolean getChildNotifyObjects(java.util.List tokenList,
                                     int startindex,
                                     java.util.Properties p,
                                     java.util.List v,
                                     Server server)

getNotifyObjects

public boolean getNotifyObjects(java.util.List tokenList,
                                int startindex,
                                java.util.Properties p,
                                java.util.List v,
                                Server server)

getObjects

public boolean getObjects(java.util.Properties p,
                          java.util.List v,
                          Server server,
                          boolean bServer,
                          boolean bApp,
                          boolean bDatabase)

setWordCompleteText

public void setWordCompleteText(TextEditor editor,
                                java.lang.String text,
                                int startoffset)
Specified by:
setWordCompleteText in interface StatementToken
Overrides:
setWordCompleteText in class StatementCommand

setCompleteText

public void setCompleteText(TextEditor editor,
                            java.lang.String text,
                            int startoffset)
Description copied from interface: StatementToken
sets the completed word into the editor
Specified by:
setCompleteText in interface StatementToken
Overrides:
setCompleteText in class StatementCommand

removeParanString

protected java.lang.String removeParanString(java.lang.String name)

setOptional

public void setOptional(boolean optional)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class StatementCommand
Throws:
java.lang.CloneNotSupportedException

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.