@Repeatable(value=Disassemble.List.class) @Documented @Target(value={ANNOTATION_TYPE,FIELD}) @Retention(value=RUNTIME) public @interface Disassemble
Declare a disassembly operation.
Specify the specific properties of the current object as the nested object to be disassembled.
Before the assembly operation starts, the disassembly operation declared in the class
will be performed first, and the nested objects will be extracted and flattened at this time.
For example, we declare an assembly operation and a disassembly operation in the class of the following example:
{@code
public class Foo {
// operation of assemblecn.crane4j.core.executor.handler.DisassembleOperationHandler;,
cn.crane4j.core.parser.AnnotationAwareBeanOperationParser;,
cn.crane4j.core.parser.DisassembleOperation;| 限定符和类型 | 可选元素和说明 |
|---|---|
String[] |
groups
The group to which the current operation belongs.
|
Class<?> |
handler
The type of the handler to be used.
|
String |
handlerName
The name of the handler to be used.
|
String |
key
Field name with nested objects to be disassembled.
|
Class<?> |
parser
The type of the parser to be used.
|
String |
parserName
The name of the parser to be used.
|
int |
sort
Sort values.
|
Class<?> |
type
The type of nested object.
|
public abstract int sort
public abstract String key
Field name with nested objects to be disassembled.
When the annotation is on an attribute, it is forced to specify the name of the annotated attribute.
public abstract Class<?> handler
public abstract String handlerName
public abstract Class<?> parser
public abstract String parserName
public abstract String[] groups
Copyright © 2023. All rights reserved.