Package com.luciad.datamodel
Class TLcdDataModelDisplayNameProvider
java.lang.Object
com.luciad.datamodel.TLcdDataModelDisplayNameProvider
- All Implemented Interfaces:
ILcdDataModelDisplayNameProvider
public class TLcdDataModelDisplayNameProvider
extends Object
implements ILcdDataModelDisplayNameProvider
Default implementation of a
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName
(TLcdDataModel aDataModel) Returns the display name for the given data model.getDisplayName
(TLcdDataProperty aProperty) Returns the display name for the given data property.getDisplayName
(TLcdDataType aType) Returns the display name for the given data type.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.
-
Constructor Details
-
TLcdDataModelDisplayNameProvider
public TLcdDataModelDisplayNameProvider()
-
-
Method Details
-
setDisplayName
Sets the display name for the model that corresponds to the specified type builder.- Parameters:
aDataModelBuilder
- a data model builder whose data model display name is to be set.aDisplayName
- the display name of the specified data model.
-
setDisplayName
Sets the display name for the type that corresponds to the specified type builder.- Parameters:
aTypeBuilder
- a type builder whose type display name is to be set.aDisplayName
- the display name of the specified type.
-
setDisplayName
Sets the display name for the property that corresponds to the specified property builder.- Parameters:
aPropertyBuilder
- a property builder whose property display name is to be set.aDisplayName
- the display name of the specified type.
-
setDisplayName
public 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.- Parameters:
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.
-
getDisplayName
Description copied from interface:ILcdDataModelDisplayNameProvider
Returns the display name for the given data model.- Specified by:
getDisplayName
in interfaceILcdDataModelDisplayNameProvider
- Parameters:
aDataModel
- the data model for which to return a display name- Returns:
- the display name for the given data model
-
getDisplayName
Description copied from interface:ILcdDataModelDisplayNameProvider
Returns the display name for the given data type.- Specified by:
getDisplayName
in interfaceILcdDataModelDisplayNameProvider
- Parameters:
aType
- the data type for which to return a display name- Returns:
- the display name for the given data type
-
getDisplayName
Returns the display name for the given data property. By default, this returns thesource name
of the property, which is the property name as it was defined in the source data.- Specified by:
getDisplayName
in interfaceILcdDataModelDisplayNameProvider
- Parameters:
aProperty
- the data property for which to return a display name- Returns:
- the display name for the given data property
-
getDisplayName
Description copied from interface:ILcdDataModelDisplayNameProvider
Returns the display name for the given value, part of the value domain of the given data type.- Specified by:
getDisplayName
in interfaceILcdDataModelDisplayNameProvider
- Parameters:
aType
- the data type the given value belongs to.aValue
- the value for which to return a display name.- Returns:
- the display name for the given value.
-