Module is.codion.framework.domain
Interface StringFactory.Builder
- Enclosing class:
- StringFactory
public static interface StringFactory.Builder
A Builder for a string function, which provides toString() values for entities.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Adds the given static text to thisStringFactory.BuilderAdds the value mapped to the given key to thisStringFactory.BuilderAdds the value mapped to the given key to this StringProvidervalue(ForeignKey foreignKey, Attribute<?> attribute) Adds the value mapped to the given attribute in theEntityinstance mapped to the given foreign key to thisStringFactory.Builder
-
Method Details
-
value
Adds the value mapped to the given key to thisStringFactory.Builder- Parameters:
attribute- the attribute which value should be added to the string representation- Returns:
- this
StringFactory.Builderinstance
-
value
Adds the value mapped to the given key to this StringProvider- Parameters:
attribute- the attribute which value should be added to the string representationformat- the Format to use when appending the value- Returns:
- this
StringFactory.Builderinstance
-
value
Adds the value mapped to the given attribute in theEntityinstance mapped to the given foreign key to thisStringFactory.Builder- Parameters:
foreignKey- the foreign keyattribute- the attribute in the referenced entity to use- Returns:
- this
StringFactory.Builderinstance
-
text
Adds the given static text to thisStringFactory.Builder- Parameters:
text- the text to add- Returns:
- this
StringFactory.Builderinstance
-
build
- Returns:
- a new string factory function based on this builder
-