protected void getPropertySource(final SourceFile src) {

		final String sourceUuid = source.getUuid();

		final SourceLine line = src.line(source, "public static final");

		line.append(" Property<");
		line.append(getValueType());
		line.append("> ");
		line.append(SchemaHelper.cleanPropertyName(source.getPropertyName()));
		line.append("Property");
		line.append(" = new ");
		line.append(getPropertyType());
		line.append("(");
		line.quoted(source.getPropertyName());

		if (StringUtils.isNotBlank(source.getDbName())) {
			line.append(", ");
			line.quoted(source.getDbName());
		}

		if (getPropertyParameters() != null) {
			line.append(getPropertyParameters());
		}

		line.append(")");

		if (StringUtils.isNotBlank(source.getContentType())) {
			line.append(".contentType(").quoted(source.getContentType()).append(")");
		}

		if (StringUtils.isNotBlank(source.getDefaultValue())) {
			line.append(".defaultValue(").append(getDefaultValue()).append(")");
		}

		if (StringUtils.isNotBlank(source.getFormat())) {
			line.append(".format(").quoted(StringEscapeUtils.escapeJava(source.getFormat())).append(")");
		}

		if (StringUtils.isNotBlank(sourceUuid)) {

			line.append(".setSourceUuid(").quoted(sourceUuid).append(")");

		} else {

			if (StringUtils.isNotBlank(source.getReadFunction())) {
				line.append(".readFunction(").quoted(StringEscapeUtils.escapeJava(source.getReadFunction())).append(")");
			}

			if (StringUtils.isNotBlank(source.getWriteFunction())) {
				line.append(".writeFunction(").quoted(StringEscapeUtils.escapeJava(source.getWriteFunction())).append(")");
			}
		}

		if (StringUtils.isNotBlank(source.getTypeHint())) {
			line.append(".typeHint(").quoted(StringEscapeUtils.escapeJava(source.getTypeHint())).append(")");
		}

		if (source.isUnique()) {
			line.append(".unique()");
		}

		if (source.isCompound()) {
			line.append(".compound()");
		}

		if (source.isNotNull()) {
			line.append(".notNull()");
		}

		if (source.isCachingEnabled()) {
			line.append(".cachingEnabled(true)");
		}

		if (source.isIndexed()) {

			if (StringUtils.isNotBlank(source.getDefaultValue())) {

				line.append(".indexedWhenEmpty()");

			} else {

				line.append(".indexed()");
			}
		}

		if (source.isReadOnly()) {

			line.append(".readOnly()");
		}

		final String[] transformators = source.getTransformators();
		if (transformators != null && transformators.length > 0) {

			line.append(".transformators(");
			line.quoted(StringUtils.join(transformators, "\", \""));
			line.append(")");
		}

		if (source.isPartOfBuiltInSchema()) {
			line.append(".partOfBuiltInSchema()");
		}

		line.append(".dynamic()");

		if (StringUtils.isNotBlank(source.getHint())) {
			line.append(".hint(").quoted(StringEscapeUtils.escapeJava(source.getHint())).append(")");
		}

		if (StringUtils.isNotBlank(source.getCategory())) {
			line.append(".category(").quoted(StringEscapeUtils.escapeJava(source.getCategory())).append(")");
		}

		line.append(";");
	}
protected void getPropertySource ( final SourceFile src ) { final String sourceUuid = source . getUuid ( ) ; final SourceLine line = src . line ( source , "public static final" ) ; line . append ( " Property<" ) ; line . append ( getValueType ( ) ) ; line . append ( "> " ) ; line . append ( SchemaHelper . cleanPropertyName ( source . getPropertyName ( ) ) ) ; line . append ( "Property" ) ; line . append ( " = new " ) ; line . append ( getPropertyType ( ) ) ; line . append ( "(" ) ; line . quoted ( source . getPropertyName ( ) ) ; if ( StringUtils . isNotBlank ( source . getDbName ( ) ) ) { line . append ( ", " ) ; line . quoted ( source . getDbName ( ) ) ; } if ( getPropertyParameters ( ) != null ) { line . append ( getPropertyParameters ( ) ) ; } line . append ( ")" ) ; if ( StringUtils . isNotBlank ( source . getContentType ( ) ) ) { line . append ( ".contentType(" ) . quoted ( source . getContentType ( ) ) . append ( ")" ) ; } if ( StringUtils . isNotBlank ( source . getDefaultValue ( ) ) ) { line . append ( ".defaultValue(" ) . append ( getDefaultValue ( ) ) . append ( ")" ) ; } if ( StringUtils . isNotBlank ( source . getFormat ( ) ) ) { line . append ( ".format(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getFormat ( ) ) ) . append ( ")" ) ; } if ( StringUtils . isNotBlank ( sourceUuid ) ) { line . append ( ".setSourceUuid(" ) . quoted ( sourceUuid ) . append ( ")" ) ; } else { if ( StringUtils . isNotBlank ( source . getReadFunction ( ) ) ) { line . append ( ".readFunction(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getReadFunction ( ) ) ) . append ( ")" ) ; } if ( StringUtils . isNotBlank ( source . getWriteFunction ( ) ) ) { line . append ( ".writeFunction(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getWriteFunction ( ) ) ) . append ( ")" ) ; } } if ( StringUtils . isNotBlank ( source . getTypeHint ( ) ) ) { line . append ( ".typeHint(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getTypeHint ( ) ) ) . append ( ")" ) ; } if ( source . isUnique ( ) ) { line . append ( ".unique()" ) ; } if ( source . isCompound ( ) ) { line . append ( ".compound()" ) ; } if ( source . isNotNull ( ) ) { line . append ( ".notNull()" ) ; } if ( source . isCachingEnabled ( ) ) { line . append ( ".cachingEnabled(true)" ) ; } if ( source . isIndexed ( ) ) { if ( StringUtils . isNotBlank ( source . getDefaultValue ( ) ) ) { line . append ( ".indexedWhenEmpty()" ) ; } else { line . append ( ".indexed()" ) ; } } if ( source . isReadOnly ( ) ) { line . append ( ".readOnly()" ) ; } final String [ ] transformators = source . getTransformators ( ) ; if ( transformators != null && transformators . length > 0 ) { line . append ( ".transformators(" ) ; line . quoted ( StringUtils . join ( transformators , "\", \"" ) ) ; line . append ( ")" ) ; } if ( source . isPartOfBuiltInSchema ( ) ) { line . append ( ".partOfBuiltInSchema()" ) ; } line . append ( ".dynamic()" ) ; if ( StringUtils . isNotBlank ( source . getHint ( ) ) ) { line . append ( ".hint(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getHint ( ) ) ) . append ( ")" ) ; } if ( StringUtils . isNotBlank ( source . getCategory ( ) ) ) { line . append ( ".category(" ) . quoted ( StringEscapeUtils . escapeJava ( source . getCategory ( ) ) ) . append ( ")" ) ; } line . append ( ";" ) ; }
----- protected methods -----