ModelProps Class
parses model properties and classifies them
Item Index
Methods
Methods
getAllProps
()
Array(String)
public
get all prop names
Returns:
getDefaultValue
-
prop
get the default value of the prop
Parameters:
-
prop
String
Returns:
defaultValue
getEntityPropByIdProp
-
idPropName
get entity prop of the given idPropName
Parameters:
-
idPropName
String
Returns:
submodelProp
getEntityProps
()
Array(String)
public
get all entity prop names
Returns:
getIdPropByEntityProp
-
prop
get prop name of id of entity prop
Parameters:
-
prop
String
Returns:
idPropName
getSubModelProps
-
prop
get model name of model prop
Parameters:
-
prop
String
Returns:
model name
getSubModelProps
()
Array(String)
public
get all model prop names
Returns:
isDate
-
prop
check if the given prop is date
Parameters:
-
prop
String
Returns:
isEntity
-
prop
check if the given prop is entity prop
Parameters:
-
prop
String
Returns:
isEnum
-
prop
check if the given prop is enum
Parameters:
-
prop
String
Returns:
isEnumDic
-
prop
get value - enum pair
Parameters:
-
prop
String
Returns:
isEnumValues
-
prop
get values of enum
Parameters:
-
prop
String
Returns:
isId
-
prop
check if the given prop is submodel's id
Parameters:
-
prop
String
Returns:
isModel
-
prop
check if the given prop is model prop
Parameters:
-
prop
String
Returns:
isOmitted
-
prop
check if the given prop is tmp prop
Parameters:
-
prop
String
Returns:
isOptional
-
prop
check if the prop is optional
Parameters:
-
prop
String
Returns:
parse
()
private
parse props by type
parseProp
()
private
parse one prop by type
parseSubModelProp
()
private
parse submodel prop
Properties
createdAt
String
public
property whose type is CREATED_AT
dates
Array(String)
public
properties whose type is DATE, CREATED_AT and UPDATED_AT
updatedAt
String
public
property whose type is UPDATED_AT