public class TLcdDataModelDisplayNameProvider extends Object implements ILcdDataModelDisplayNameProvider
ILcdDataModelDisplayNameProvider
.
This implementation returns the display name that has been configured via one of the
setDisplayName
methods, or the name of the entity in case no display name has been set.Constructor and Description |
---|
TLcdDataModelDisplayNameProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName(TLcdDataModel aDataModel)
Returns the display name for the given data model.
|
String |
getDisplayName(TLcdDataProperty aProperty)
Returns the display name for the given data property.
|
String |
getDisplayName(TLcdDataType aType)
Returns the display name for the given data type.
|
String |
getDisplayName(TLcdDataType aType,
Object aValue)
Returns the display name for the given value, part of the value domain of the given data type.
|
void |
setDisplayName(TLcdDataModelBuilder aDataModelBuilder,
String aDisplayName)
Sets the display name for the model that corresponds to the specified type builder.
|
void |
setDisplayName(TLcdDataPropertyBuilder aPropertyBuilder,
String aDisplayName)
Sets the display name for the property that corresponds to the specified property builder.
|
void |
setDisplayName(TLcdDataTypeBuilder aDataTypeBuilder,
Object aValue,
String aDisplayName)
Sets the display name for the value within the data type that corresponds to the specified
data type builder.
|
void |
setDisplayName(TLcdDataTypeBuilder aTypeBuilder,
String aDisplayName)
Sets the display name for the type that corresponds to the specified type builder.
|
public void setDisplayName(TLcdDataModelBuilder aDataModelBuilder, String aDisplayName)
aDataModelBuilder
- a data model builder whose data model display name is to be set.aDisplayName
- the display name of the specified data model.public void setDisplayName(TLcdDataTypeBuilder aTypeBuilder, String aDisplayName)
aTypeBuilder
- a type builder whose type display name is to be set.aDisplayName
- the display name of the specified type.public void setDisplayName(TLcdDataPropertyBuilder aPropertyBuilder, String aDisplayName)
aPropertyBuilder
- a property builder whose property display name is to be set.aDisplayName
- the display name of the specified type.public void setDisplayName(TLcdDataTypeBuilder aDataTypeBuilder, Object aValue, String aDisplayName)
aDataTypeBuilder
- the data type builder of the type to which the specified value belongs.aValue
- the value whose display name is to be set.aDisplayName
- the display name of the specified type.public String getDisplayName(TLcdDataModel aDataModel)
ILcdDataModelDisplayNameProvider
getDisplayName
in interface ILcdDataModelDisplayNameProvider
aDataModel
- the data model for which to return a display namepublic String getDisplayName(TLcdDataType aType)
ILcdDataModelDisplayNameProvider
getDisplayName
in interface ILcdDataModelDisplayNameProvider
aType
- the data type for which to return a display namepublic String getDisplayName(TLcdDataProperty aProperty)
ILcdDataModelDisplayNameProvider
getDisplayName
in interface ILcdDataModelDisplayNameProvider
aProperty
- the data property for which to return a display namepublic String getDisplayName(TLcdDataType aType, Object aValue)
ILcdDataModelDisplayNameProvider
getDisplayName
in interface ILcdDataModelDisplayNameProvider
aType
- the data type the given value belongs to.aValue
- the value for which to return a display name.