Class RQuote
- java.lang.Object
-
- io.vertx.tp.atom.modeling.reference.RQuote
-
- All Implemented Interfaces:
Serializable
public class RQuote extends Object implements Serializable
##「Pojo」Quote Definition Object ### 1. Intro Here are basic definition in `X_ATTRIBUTE` for calculation. - source: Defined `identifier` in our environment ( Static Model & Dynamic Model ) - sourceField: Defined `field` of critical reference or it will not be used. ### 2. Level Here are mapping relations 1. Quote: Model/Entity level, it provides features to process the whole model. 2. Rule: Attribute/Field level, it provides rules to process attributes/fields only. ### 3. Category When create DataQuote, it's distinguish by `source` field, it means that the `source` could not produce duplicated `sourceField` here.- Author:
- Lang
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RQuoteadd(MAttribute attribute, AoAttribute service)「Fluent」Add new attribute in current Quote instance.static RQuotecreate(String appName, String source)The factory method to create new instance.RDaodao(String field)AoRulerule(String field)ConcurrentMap<String,AoRule>rules()Class<?>type(String field)
-
-
-
Method Detail
-
create
public static RQuote create(String appName, String source)
The factory method to create new instance.
-
add
public RQuote add(MAttribute attribute, AoAttribute service)
「Fluent」Add new attribute in current Quote instance. Here the dao class could be unique, it means that when `source` is fixed, here are only one dao class that has been mapped to current DataQuote DataQuote created by pooled with ```java //
``` > Here are specification that only one source must be unique dao class instead.final DataQuote reference = Fn.pool(this.references, source, () -> DataQuote.create(source)); //- Parameters:
attribute-MAttributeInput attribute objectservice-AoAttribute- Returns:
RQuote
-
rules
public ConcurrentMap<String,AoRule> rules()
- Returns:
- Hash map of rules
-
-