Package io.vertx.tp.atom.modeling.config
Class AoAttribute
- java.lang.Object
-
- io.vertx.tp.atom.modeling.config.AoAttribute
-
- All Implemented Interfaces:
Serializable
public class AoAttribute extends Object implements Serializable
## 「Pojo」SourceConfig ### 1. Intro Here are the parsing workflow: 1. When isArray = true, the dataFormat is `JsonArray`. 2. Otherwise, extract `type` field of `sourceConfig` to get actual dataFormat. ### 2. Limitation #### 2.1. JsonArray 1. INTERNAL: Must contains `fields` configuration for sub-elements. 2. REFERENCE/EXTERNAL: No. 3. The `type` isJsonArray; #### 2.2. JsonObject 1. INTERNAL: Must contains `fields` configuration for sub-elements. 2. REFERENCE/EXTERNAL: No. 3. The `type` isJsonObject; #### 2.3. Elementary 1. The config must contains `type` field to define java class type name. 2. It's default value here. `type =String`, `source = Elementary`.- Author:
- Lang
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AoAttribute(MAttribute attribute, MField sourceField)Create new AoService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormatformat()AoRulerule()Return to `rule`io.vertx.up.commune.element.TypeFieldtype()Return to current type fieldClass<?>typeCls()Return to current data typeList<io.vertx.up.commune.element.TypeField>types()Return to `fields`
-
-
-
Constructor Detail
-
AoAttribute
public AoAttribute(MAttribute attribute, MField sourceField)
Create new AoService- Parameters:
attribute-MAttribute`M_ATTRIBUTE` referred
-
-
Method Detail
-
type
public io.vertx.up.commune.element.TypeField type()
Return to current type field- Returns:
TypeField
-
format
public DataFormat format()
- Returns:
DataFormat
-
-