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 Details

    • TLcdDataModelDisplayNameProvider

      public TLcdDataModelDisplayNameProvider()
  • Method Details

    • setDisplayName

      public void setDisplayName(TLcdDataModelBuilder aDataModelBuilder, String aDisplayName)
      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

      public void setDisplayName(TLcdDataTypeBuilder aTypeBuilder, String aDisplayName)
      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

      public void setDisplayName(TLcdDataPropertyBuilder aPropertyBuilder, String aDisplayName)
      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

      public String getDisplayName(TLcdDataModel aDataModel)
      Description copied from interface: ILcdDataModelDisplayNameProvider
      Returns the display name for the given data model.
      Specified by:
      getDisplayName in interface ILcdDataModelDisplayNameProvider
      Parameters:
      aDataModel - the data model for which to return a display name
      Returns:
      the display name for the given data model
    • getDisplayName

      public String getDisplayName(TLcdDataType aType)
      Description copied from interface: ILcdDataModelDisplayNameProvider
      Returns the display name for the given data type.
      Specified by:
      getDisplayName in interface ILcdDataModelDisplayNameProvider
      Parameters:
      aType - the data type for which to return a display name
      Returns:
      the display name for the given data type
    • getDisplayName

      public String getDisplayName(TLcdDataProperty aProperty)
      Returns the display name for the given data property. By default, this returns the source name of the property, which is the property name as it was defined in the source data.
      Specified by:
      getDisplayName in interface ILcdDataModelDisplayNameProvider
      Parameters:
      aProperty - the data property for which to return a display name
      Returns:
      the display name for the given data property
    • getDisplayName

      public String getDisplayName(TLcdDataType aType, Object aValue)
      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 interface ILcdDataModelDisplayNameProvider
      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.