Package io.vertx.tp.optic.modeling
Class JsonModel
- java.lang.Object
-
- io.vertx.tp.optic.modeling.JsonModel
-
- All Implemented Interfaces:
Model,Json,Serializable
public class JsonModel extends Object implements Model
Ox专用模型: 1. 包含一个MModel 2. 包含该Model对应的MAttribute集合 3. 包含多个Schema- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AoAttributeattribute(String attributeName)Modelbind(Set<Schema> schemas)voidbindDirect(Set<Schema> schemas)MAttributedbAttribute(String attributeName)Set<MAttribute>dbAttributes()Set<MJoin>dbJoins()MModeldbModel()booleanequals(Object o)Stringfile()voidfromFile(String file)voidfromJson(io.vertx.core.json.JsonObject json)inthashCode()Stringidentifier()DataKeykey()voidkey(DataKey key)Stringnamespace()voidrelation(String key)Schemaschema(String identifier)Set<Schema>schemata()io.vertx.core.json.JsonObjecttoJson()StringtoString()ModelTypetype()ConcurrentMap<String,Class<?>>typeCls()ConcurrentMap<String,io.vertx.up.commune.element.TypeField>types()io.vertx.up.commune.rule.RuleUniqueunique()
-
-
-
Constructor Detail
-
JsonModel
public JsonModel(String namespace)
-
-
Method Detail
-
identifier
public String identifier()
-
typeCls
public ConcurrentMap<String,Class<?>> typeCls()
-
file
public String file()
-
namespace
public String namespace()
-
key
public DataKey key()
-
key
public void key(DataKey key)
-
dbAttributes
public Set<MAttribute> dbAttributes()
- Specified by:
dbAttributesin interfaceModel
-
attribute
public AoAttribute attribute(String attributeName)
-
types
public ConcurrentMap<String,io.vertx.up.commune.element.TypeField> types()
-
dbAttribute
public MAttribute dbAttribute(String attributeName)
- Specified by:
dbAttributein interfaceModel
-
relation
public void relation(String key)
-
fromJson
public void fromJson(io.vertx.core.json.JsonObject json)
-
-