public void addDatatype ( String pluralDatatype , String datatype ) { pluralDatatype = Utils . noSpaces ( Utils . stripAndTrim ( pluralDatatype , " " ) , "-" ) ; datatype = Utils . noSpaces ( Utils . stripAndTrim ( datatype , " " ) , "-" ) ; if ( StringUtils . isBlank ( pluralDatatype ) || StringUtils . isBlank ( datatype ) ) { return ; } if ( getDatatypes ( ) . size ( ) >= Config . MAX_DATATYPES_PER_APP ) { LoggerFactory . getLogger ( App . class ) . warn ( "Maximum number of types per app reached - {}." , Config . MAX_DATATYPES_PER_APP ) ; return ; } if ( ! getDatatypes ( ) . containsKey ( pluralDatatype ) && ! getDatatypes ( ) . containsValue ( datatype ) && ! ParaObjectUtils . getCoreTypes ( ) . containsKey ( pluralDatatype ) ) { getDatatypes ( ) . put ( pluralDatatype , datatype ) ; } }
Adds a user - defined data type to the types map .