Package one.xingyi.core.typeDom
Interface TypeDom
-
- All Known Subinterfaces:
NonPrimitiveTypeDom
- All Known Implementing Classes:
EmbeddedType,ListType,PrimitiveType,ViewType
public interface TypeDom
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Result<java.lang.String,TypeDom>create(IServerNames names, java.lang.String rawTypeName, IViewDefnNameToViewName viewNamesMap)java.lang.StringentityNameForLens()default java.lang.StringforEntity()This is the type that is used by entities.java.lang.StringforFromJson(java.lang.String fieldName)default java.lang.StringforToJson(java.lang.String fieldName, boolean templated)default java.lang.StringforView()This is the type that is used by entities.java.lang.StringfullTypeName()For example if the type if List of T this is List of Tjava.lang.StringlensDefn(java.lang.String fieldName)TypeDomnested()For example if the type if List of T this is T, but if the types is T this is also Tbooleanprimitive()default java.lang.StringviewCompanion()empty string unless a view type
-
-
-
Method Detail
-
fullTypeName
java.lang.String fullTypeName()
For example if the type if List of T this is List of T
-
forEntity
default java.lang.String forEntity()
This is the type that is used by entities. For most type doms it is the same as the full typenames. For view types it changes from the defn to the server interfaces
-
forView
default java.lang.String forView()
This is the type that is used by entities. For most type doms it is the same as the full typenames. For view types it changes from the defn to the view interfaces
-
viewCompanion
default java.lang.String viewCompanion()
empty string unless a view type
-
nested
TypeDom nested()
For example if the type if List of T this is T, but if the types is T this is also T
-
primitive
boolean primitive()
-
entityNameForLens
java.lang.String entityNameForLens()
-
forToJson
default java.lang.String forToJson(java.lang.String fieldName, boolean templated)
-
forFromJson
java.lang.String forFromJson(java.lang.String fieldName)
-
lensDefn
java.lang.String lensDefn(java.lang.String fieldName)
-
create
static Result<java.lang.String,TypeDom> create(IServerNames names, java.lang.String rawTypeName, IViewDefnNameToViewName viewNamesMap)
-
-