Class 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` is JsonArray; #### 2.2. JsonObject 1. INTERNAL: Must contains `fields` configuration for sub-elements. 2. REFERENCE/EXTERNAL: No. 3. The `type` is JsonObject; #### 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 Detail

      • AoAttribute

        public AoAttribute​(MAttribute attribute,
                           MField sourceField)
        Create new AoService
        Parameters:
        attribute - MAttribute `M_ATTRIBUTE` referred
    • Method Detail

      • typeCls

        public Class<?> typeCls()
        Return to current data type
        Returns:
        Class
      • type

        public io.vertx.up.commune.element.TypeField type()
        Return to current type field
        Returns:
        TypeField
      • types

        public List<io.vertx.up.commune.element.TypeField> types()
        Return to `fields`
        Returns:
        List
      • rule

        public AoRule rule()
        Return to `rule`
        Returns:
        AoRule