public class IfsStringListCommand extends IfsCommand
Inputs:
Modifier and Type | Field and Description |
---|---|
protected CommandContextPool |
m_AttrDisplayPool |
protected CommandContextPool |
m_GetAttrNamesPool |
protected CommandContextPool |
m_GetAttrsPool |
Constructor and Description |
---|
IfsStringListCommand()
Defualt Constructor
|
Modifier and Type | Method and Description |
---|---|
CommandContext |
createCommandContext()
Returns a CommandContext to be used throughout the invocation.
|
protected void |
execute(CommandContext context)
Execute a CommandContext.
|
protected void |
execute(StringListContext context)
Executes a StringListContext.
|
protected void |
executeAttributeStringDisplay(LibraryObject obj,
AttributeValue[] attrs,
boolean namesOnly,
LibrarySession session,
StringBuffer buffer,
boolean obfuscate) |
protected String[] |
executeGetAttributeNames(LibraryObject obj) |
protected AttributeValue[] |
executeGetAttributes(LibraryObject obj,
String[] attrNames) |
protected IfsAttributeStringDisplayCommand |
getAttributeStringDisplayCommand() |
protected IfsGetAttributeNamesCommand |
getGetAttributeNamesCommand() |
protected IfsGetAttributesCommand |
getGetAttributesCommand() |
void |
populateNestedCommands(CommandInvoker commandInvoker)
Populate all the needed nested commands.
|
postExecute, preExecute, run
protected CommandContextPool m_GetAttrNamesPool
protected CommandContextPool m_GetAttrsPool
protected CommandContextPool m_AttrDisplayPool
public IfsStringListCommand()
public void populateNestedCommands(CommandInvoker commandInvoker) throws IfsException
IfsCommand
CommandInvoker
is not guaranteed to exist for the lifetime of
the command. Therefore, the command should not keep a reference to the
command invoker and it should acquire all the references to the needed
commands in this call-back method.
populateNestedCommands
in interface Command
populateNestedCommands
in class IfsCommand
commandInvoker
- The CommandInvoker
object that can be
used to acquire references to the needed
sub-commands.IfsException
- If there is any exception thrown.CommandInvoker
protected IfsAttributeStringDisplayCommand getAttributeStringDisplayCommand() throws IfsException
IfsException
protected IfsGetAttributesCommand getGetAttributesCommand() throws IfsException
IfsException
protected IfsGetAttributeNamesCommand getGetAttributeNamesCommand() throws IfsException
IfsException
protected void execute(CommandContext context) throws IfsException
execute
in class IfsCommand
context
- the command context.IfsException
- if execution failsprotected String[] executeGetAttributeNames(LibraryObject obj) throws IfsException
IfsException
protected AttributeValue[] executeGetAttributes(LibraryObject obj, String[] attrNames) throws IfsException
IfsException
protected void executeAttributeStringDisplay(LibraryObject obj, AttributeValue[] attrs, boolean namesOnly, LibrarySession session, StringBuffer buffer, boolean obfuscate) throws IfsException
IfsException
protected void execute(StringListContext context) throws IfsException
IfsException
public CommandContext createCommandContext() throws IfsException
createCommandContext
in interface Command
createCommandContext
in class IfsCommand
CommandContext
.IfsException
CommandContext
Copyright © 2023. All rights reserved.