|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.api.admin.CommandModel
public abstract class CommandModel
Model for an administrative command
| Nested Class Summary | |
|---|---|
static class |
CommandModel.ParamModel
Model for a command parameter. |
| Constructor Summary | |
|---|---|
CommandModel()
|
|
| Method Summary | |
|---|---|
abstract ExecuteOn |
getClusteringAttributes()
Return the cluster parameters for this command or null if none are specified and defaults should be used. |
abstract java.lang.Class<?> |
getCommandClass()
Return the class that defines the command. |
abstract java.lang.String |
getCommandName()
Returns the command name as it is typed by the user. |
abstract java.lang.String |
getLocalizedDescription()
Returns a localized description for this command |
abstract CommandModel.ParamModel |
getModelFor(java.lang.String paramName)
Returns the parameter model for a particular parameter |
java.util.Collection<CommandModel.ParamModel> |
getParameters()
Returns a collection of parameter model for all the parameters supported by this command. |
abstract java.util.Collection<java.lang.String> |
getParametersNames()
Returns a collection of parameter names supported by this admininstrative command |
static java.lang.String |
getParamName(Param param,
java.lang.reflect.AnnotatedElement annotated)
Get the Param name. |
abstract java.lang.String |
getUsageText()
Returns a localized usage text for this command or null if the usage text should be generated from this model. |
boolean |
unknownOptionsAreOperands()
Should an unknown option be considered an operand by asadmin? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandModel()
| Method Detail |
|---|
public abstract java.lang.String getCommandName()
public abstract java.lang.String getLocalizedDescription()
public abstract java.lang.String getUsageText()
public abstract CommandModel.ParamModel getModelFor(java.lang.String paramName)
paramName - the requested parameter model name
public abstract java.util.Collection<java.lang.String> getParametersNames()
public abstract java.lang.Class<?> getCommandClass()
public abstract ExecuteOn getClusteringAttributes()
ExecuteOn annotation instance or nullpublic java.util.Collection<CommandModel.ParamModel> getParameters()
public static java.lang.String getParamName(Param param,
java.lang.reflect.AnnotatedElement annotated)
param - class annotationannotated - annotated field or method
public boolean unknownOptionsAreOperands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||