public String getFieldClassName(String modelClassName, String fieldName) { ModelField field = this.getField( modelClassName, fieldName ); return field == null ? null : field.getClassName(); }
public ModelField.FIELD_CLASS_TYPE getFieldClassType(String modelClassName, String fieldName) { ModelField field = this.getField( modelClassName, fieldName ); return field == null ? null : field.getClassType(); }
public String[] getModelFields(String modelClassName) { String shortName = this.getFactNameFromType( modelClassName ); if ( !this.getModelFields().containsKey( shortName ) ) { return new String[0]; } ModelField[] fields = this.getModelFields().get( shortName ); String[] fieldNames = new String[fields.length]; for ( int i = 0; i < fields.length; i++ ) { fieldNames[i] = fields[i].getName(); } return fieldNames; }
private String getTypeFromSCE(String factType, String fieldName, SuggestionCompletionEngine sce) { // Columns with enumerations are always Text (for now) if ( sce.hasEnums( factType, fieldName ) ) { return SuggestionCompletionEngine.TYPE_STRING; } //Otherwise lookup from SuggestionCompletionEngine String type = sce.getFieldType( factType, fieldName ); return type; }
/** * For simple cases - where a list of values are known based on a field. */ public String[] getEnumValues(String factType, String field) { return this.getDataEnumList( factType + "." + field ); }
public String[] getFieldCompletions(FieldAccessorsAndMutators accessorOrMutator, String factType) { return this.getModelFields( accessorOrMutator, factType ); }
/** * returns the type of parametric class List<String> a in a class called * Toto key = "Toto.a" value = "String" */ public String getParametricFieldType(final String factType, final String fieldName) { return this.getParametricFieldType( factType + "." + fieldName ); }
public boolean hasEnums(String factType, String field) { return this.hasEnums( factType + "." + field ); }
public Map<String, ModelField[]> getModelFields() { if ( factFilter != null && isFilteringFacts() ) { return filterModelFields; } return modelFields; }
@Override public String toString() { return getNameWithParameters(); } }
public String[] getModelFields(String modelClassName) { String shortName = this.getFactNameFromType( modelClassName ); if ( !this.getModelFields().containsKey( shortName ) ) { return new String[0]; } ModelField[] fields = this.getModelFields().get( shortName ); String[] fieldNames = new String[fields.length]; for ( int i = 0; i < fields.length; i++ ) { fieldNames[i] = fields[i].getName(); } return fieldNames; }
public String getFieldClassName(String modelClassName, String fieldName) { ModelField field = this.getField( modelClassName, fieldName ); return field == null ? null : field.getClassName(); }
public ModelField.FIELD_CLASS_TYPE getFieldClassType(String modelClassName, String fieldName) { ModelField field = this.getField( modelClassName, fieldName ); return field == null ? null : field.getClassType(); }
/** * For simple cases - where a list of values are known based on a field. */ public String[] getEnumValues(String factType, String field) { return this.getDataEnumList( factType + "." + field ); }
public String[] getFieldCompletions(FieldAccessorsAndMutators accessorOrMutator, String factType) { return this.getModelFields( accessorOrMutator, factType ); }
/** * returns the type of parametric class List<String> a in a class called * Toto key = "Toto.a" value = "String" */ public String getParametricFieldType(final String factType, final String fieldName) { return this.getParametricFieldType( factType + "." + fieldName ); }
public Map<String, ModelField[]> getModelFields() { if ( factFilter != null && isFilteringFacts() ) { return filterModelFields; } return modelFields; }
@Override public String toString() { return getNameWithParameters(); } }