Class BroadcastDocument
java.lang.Object
com.iohao.net.framework.core.doc.BroadcastDocument
Documentation model for a single broadcast (server-push) route, describing the
command info, data type, method name, and associated metadata used for client
SDK code generation.
- Author:
- 渔民小镇
- date:
- 2024-06-25
-
Field Summary
FieldsModifier and TypeFieldDescriptionMapped business data type name.final CmdInfoThe route (command info) for this broadcast.Method name (camelCase) for command-style usage.Actual data type name.Class<?> Business data type class.Simple name of the business data type.Description of the broadcast data parameter.booleantrue if the broadcast data is a List type.booleantrue if the data type is a built-in protocol fragment; false for user-defined types.Example code snippet.Example action code snippet.Description of the broadcast method.Method name (PascalCase).SDK result list getter method name.SDK result getter method name. -
Method Summary
Modifier and TypeMethodDescriptionstatic BroadcastDocumentBuilderMapped business data type name.intgetCmd()The route (command info) for this broadcast.intMethod name (camelCase) for command-style usage.Actual data type name.Class<?> Business data type class.Simple name of the business data type.Description of the broadcast data parameter.Example code snippet.Example action code snippet.Description of the broadcast method.Method name (PascalCase).SDK result list getter method name.SDK result getter method name.intbooleantrue if the broadcast data is a List type.booleantrue if the data type is a built-in protocol fragment; false for user-defined types.static BroadcastDocumentBuildernewBuilder(CmdInfo cmdInfo) Deprecated.
-
Field Details
-
cmdInfo
The route (command info) for this broadcast. -
methodDescription
Description of the broadcast method. -
methodName
Method name (PascalCase). -
cmdMethodName
Method name (camelCase) for command-style usage. -
dataClass
Business data type class. -
dataClassName
Simple name of the business data type. -
dataDescription
Description of the broadcast data parameter. -
dataTypeIsInternal
public boolean dataTypeIsInternaltrue if the data type is a built-in protocol fragment; false for user-defined types. -
dataIsList
public boolean dataIsListtrue if the broadcast data is a List type. -
bizDataType
Mapped business data type name. -
resultMethodTypeName
SDK result getter method name. -
resultMethodListTypeName
SDK result list getter method name. -
dataActualTypeName
Actual data type name. -
exampleCode
Example code snippet. -
exampleCodeAction
Example action code snippet.
-
-
Method Details
-
getCmdMerge
public int getCmdMerge() -
getCmd
public int getCmd() -
getSubCmd
public int getSubCmd() -
builder
-
newBuilder
Deprecated.seebuilder(CmdInfo)create BroadcastDocumentBuilder- Parameters:
cmdInfo- cmdInfo- Returns:
- BroadcastDocumentBuilder
-
getCmdInfo
The route (command info) for this broadcast. -
getMethodDescription
Description of the broadcast method. -
getMethodName
Method name (PascalCase). -
getCmdMethodName
Method name (camelCase) for command-style usage. -
getDataClass
Business data type class. -
getDataClassName
Simple name of the business data type. -
getDataDescription
Description of the broadcast data parameter. -
isDataTypeIsInternal
public boolean isDataTypeIsInternal()true if the data type is a built-in protocol fragment; false for user-defined types. -
isDataIsList
public boolean isDataIsList()true if the broadcast data is a List type. -
getBizDataType
Mapped business data type name. -
getResultMethodTypeName
SDK result getter method name. -
getResultMethodListTypeName
SDK result list getter method name. -
getDataActualTypeName
Actual data type name. -
getExampleCode
Example code snippet. -
getExampleCodeAction
Example action code snippet.
-
builder(CmdInfo)