Class ActionDoc
java.lang.Object
com.iohao.net.framework.core.doc.ActionDoc
Documentation model for a single
@ActionController, grouping all
ActionCommandDoc entries that share the same primary command ID.- Author:
- 渔民小镇
- date:
- 2023-07-13
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Map<Integer, ActionCommandDoc> Action method docs keyed by subCmd.final intfinal Class<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionCommand(ActionCommand actionCommand) Associate a parsedActionCommandwith its existing doc entry.voidaddActionCommandDoc(ActionCommandDoc actionCommandDoc) Register anActionCommandDocunder its sub-command ID.booleaninthashCode()stream()Return a stream of command docs sorted by sub-command ID.
-
Field Details
-
cmd
public final int cmd -
controllerClazz
-
actionCommandDocMap
Action method docs keyed by subCmd. -
javaClassDocInfo
-
-
Constructor Details
-
ActionDoc
Create a new action doc for the given command ID and controller class.- Parameters:
cmd- the primary command IDcontrollerClazz- the controller class
-
-
Method Details
-
addActionCommandDoc
Register anActionCommandDocunder its sub-command ID.- Parameters:
actionCommandDoc- the command doc to add
-
addActionCommand
Associate a parsedActionCommandwith its existing doc entry.- Parameters:
actionCommand- the action command to link
-
stream
Return a stream of command docs sorted by sub-command ID.- Returns:
- sorted stream of
ActionCommandDoc
-
equals
-
hashCode
-