Package one.xingyi.core.typeDom
Class ViewType
- java.lang.Object
-
- one.xingyi.core.typeDom.ViewType
-
- All Implemented Interfaces:
NonPrimitiveTypeDom,TypeDom
public class ViewType extends java.lang.Object implements NonPrimitiveTypeDom
-
-
Constructor Summary
Constructors Constructor Description ViewType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringentityNameForLens()java.lang.StringforEntity()This is the type that is used by entities.java.lang.StringforFromJson(java.lang.String fieldName)java.lang.StringforToJson(java.lang.String fieldName, boolean templated)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()java.lang.StringviewCompanion()empty string unless a view type
-
-
-
Method Detail
-
fullTypeName
public java.lang.String fullTypeName()
Description copied from interface:TypeDomFor example if the type if List of T this is List of T- Specified by:
fullTypeNamein interfaceTypeDom
-
forEntity
public java.lang.String forEntity()
Description copied from interface:TypeDomThis 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
public java.lang.String forView()
Description copied from interface:TypeDomThis 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
-
nested
public TypeDom nested()
Description copied from interface:TypeDomFor example if the type if List of T this is T, but if the types is T this is also T
-
entityNameForLens
public java.lang.String entityNameForLens()
- Specified by:
entityNameForLensin interfaceTypeDom
-
forToJson
public java.lang.String forToJson(java.lang.String fieldName, boolean templated)
-
forFromJson
public java.lang.String forFromJson(java.lang.String fieldName)
- Specified by:
forFromJsonin interfaceTypeDom
-
lensDefn
public java.lang.String lensDefn(java.lang.String fieldName)
-
viewCompanion
public java.lang.String viewCompanion()
Description copied from interface:TypeDomempty string unless a view type- Specified by:
viewCompanionin interfaceTypeDom
-
-