Class TLcdS101DisplaySettings
- All Implemented Interfaces:
ILcdDataObject,ILcdDepthDisplaySettings,ILcdCloneable,ILcdPropertyChangeSource,Cloneable
TLcdS101DisplaySettings object to all S-101 components (painter providers, model list builders,
symbologies, ...) that work on the same model, or need to behave identical w.r.t. S-101 rendering.
A class can be registered as a PropertyChangeListener to this class. The listener will be notified each time
one of the rendering settings has been changed.- Since:
- 2026.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetColorPalette().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetDeepContour().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetDisplayMode().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisDisplayOverscaleIndication().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetDisplayPlanes()property.static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisDisplayUnderscaleIndication().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisFullLightLines().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisIgnoreScaleMinimum()property.static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetLanguage().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisPlainBoundaries().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisRadarOverlay()property.static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetSafetyContour().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetSafetyDepth().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetShallowContour().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisShallowWaterDangers().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisSimplifiedSymbols().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetUnderscaleIndicationColor().static final TLcdDataPropertyTheTLcdDataPropertywhich represents theisUseTwoShades().static final TLcdDataPropertyTheTLcdDataPropertywhich represents thegetViewingGroupLayers()property. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdS101DisplaySettingsinstance with default display settings.TLcdS101DisplaySettings(TLcdS101DisplaySettings aDisplaySettings) Creates a new display settings instance, initialized with the settings of the given display settings. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListenerto be notified when this object's properties change.voidaddViewingGroupLayer(ELcdS101ViewingGroupLayer aViewingGroupLayer) Adds the specified viewing group layer to the list of visible layers.clone()MakesObject.clone()public.booleanReturns the S-101 color palette to be used.Returns the type of this data object.doubleReturns the depth of the deep contour.Returns the S-101 display mode to be rendered.Returns the set of visible display planes.Returns the language used for text rendering.doubleReturns the depth of the safety contour.doubleReturns the ship's safety depth.doubleReturns the depth of the shallow contour.Returns the color in which to render the underscale indication.getValue(TLcdDataProperty aProperty) Returns the value of the given property.Convenience method that returns the value of the property with the given name.Returns the set of visible viewing group layers.inthashCode()booleanhasValue(TLcdDataProperty aProperty) Indicates whether this data object has a value for the given property.booleanIndicates whether this data object has a value for the given property.booleanReturns whether to display an overscale indication for cells which are being viewed on a scale larger than the intended scale range.booleanReturns whether to display an underscale indication for cells which are not visible yet (the map scale is smaller than the intended scale range of the cell).booleanReturns whether sector lines of lights should be displayed at full length or at a fixed pixel size.booleanReturns whether the scale minimum should be ignored.booleanReturns whether the rendering of boundaries of area objects is plain or symbolized.booleanReturns whether the radar sweep should be displayed.booleanReturns whether to display isolated dangers in shallow water.booleanReturns whether the rendering of point objects is simplified or paper chart.booleanReturns whether to use a 2- or 4-color schema for depth area rendering.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListenerfrom receiving property change events for this object.voidremoveViewingGroupLayer(ELcdS101ViewingGroupLayer aViewingGroupLayer) Removes the specified viewing group layer from the list of visible layers.voidResets the viewing group layers to the ones that correspond to thedisplay mode.voidsetAll(TLcdS101DisplaySettings aDisplaySettings) Configures this display settings with the configuration of the specified display settings.voidsetColorPalette(ELcdS101ColorPalette aColorPalette) Sets the S-101 color palette to be used.voidsetDeepContour(double aDeepContour) Sets the depth of the deep contour.voidsetDisplayMode(ELcdS101DisplayMode aDisplayMode) Sets the S-101 display mode to be rendered.voidsetDisplayOverscaleIndication(boolean aDisplayOverscaleIndication) Sets whether to display an overscale indication for cells which are being viewed on a scale larger than the intended scale range.voidsetDisplayPlanes(ELcdS101DisplayPlane[] aDisplayPlanes) Set the display plane property.voidsetDisplayUnderscaleIndication(boolean aDisplayUnderscaleIndication) Sets whether to display an underscale indication for cells which are not visible yet (the map scale is smaller than the intended scale range of the cell).voidsetFullLightLines(boolean aFullLightLines) Sets whether sector lines of lights should be displayed at full length.voidsetIgnoreScaleMinimum(boolean aIgnoreScaleMinimum) Sets whether to ignore the minimum scale for objects to be visible.voidsetLanguage(String aLanguage) Sets the language used for text rendering, specified as ISO 639-2/T 3-letter language code.voidsetPlainBoundaries(boolean aPlainBoundaries) Sets whether the rendering of boundaries of area objects is plain or symbolized.voidsetRadarOverlay(boolean aRadarOverlay) Set the radar overlay property.voidsetSafetyContour(double aSafetyContour) Sets the ship's safety contour depth.voidsetSafetyDepth(double aSafetyDepth) Sets the ship's safety depth.voidsetShallowContour(double aShallowContour) Sets the depth of the shallow contour.voidsetShallowWaterDangers(boolean aShallowWaterDangers) Sets whether to display isolated dangers in shallow water.voidsetSimplifiedSymbols(boolean aSimplifiedSymbols) Sets whether the rendering of point objects is simplified or paper chart.voidsetUnderscaleIndicationColor(Color aUnderscaleIndicationColor) Sets the color in which to render the underscale indication.voidsetUseTwoShades(boolean aUseTwoShades) Sets whether to use a 2- or 4-color schema for depth area rendering.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidConvenience method that sets the value of the property with the given name.voidsetViewingGroupLayers(Set<ELcdS101ViewingGroupLayer> aViewingGroupLayers) Set the viewing group layers property.
-
Field Details
-
COLOR_PALETTE_PROPERTY
TheTLcdDataPropertywhich represents thegetColorPalette(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be anELcdS101ColorPaletteinstance. -
SIMPLIFIED_SYMBOLS_PROPERTY
TheTLcdDataPropertywhich represents theisSimplifiedSymbols(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
PLAIN_BOUNDARIES_PROPERTY
TheTLcdDataPropertywhich represents theisPlainBoundaries(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be anBooleaninstance. -
FULL_LIGHT_LINES_PROPERTY
TheTLcdDataPropertywhich represents theisFullLightLines(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
DISPLAY_MODE_PROPERTY
TheTLcdDataPropertywhich represents thegetDisplayMode(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be anELcdS101DisplayModeinstance. -
VIEWING_GROUP_LAYERS_PROPERTY
TheTLcdDataPropertywhich represents thegetViewingGroupLayers()property. Can be passed to thegetValue(TLcdDataProperty)method, in which case the return value will be a collection ofELcdS101ViewingGroupLayerinstance. -
RADAR_OVERLAY_PROPERTY
TheTLcdDataPropertywhich represents theisRadarOverlay()property. Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
DISPLAY_PLANES_PROPERTY
TheTLcdDataPropertywhich represents thegetDisplayPlanes()property. Can be passed to thegetValue(TLcdDataProperty)method, in which case the return value will be a collection ofELcdS101DisplayPlaneinstance. -
IGNORE_SCALE_MINIMUM_PROPERTY
TheTLcdDataPropertywhich represents theisIgnoreScaleMinimum()property. Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
LANGUAGE_PROPERTY
-
SAFETY_DEPTH_PROPERTY
TheTLcdDataPropertywhich represents thegetSafetyDepth(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aDoubleinstance. -
SHALLOW_CONTOUR_PROPERTY
TheTLcdDataPropertywhich represents thegetShallowContour(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aDoubleinstance. -
SAFETY_CONTOUR_PROPERTY
TheTLcdDataPropertywhich represents thegetSafetyContour(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aDoubleinstance. -
DEEP_CONTOUR_PROPERTY
TheTLcdDataPropertywhich represents thegetDeepContour(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aDoubleinstance. -
USE_TWO_SHADES_PROPERTY
TheTLcdDataPropertywhich represents theisUseTwoShades(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
SHALLOW_WATER_DANGERS
TheTLcdDataPropertywhich represents theisShallowWaterDangers(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
DISPLAY_OVERSCALE_INDICATION_PROPERTY
TheTLcdDataPropertywhich represents theisDisplayOverscaleIndication(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
DISPLAY_UNDERSCALE_INDICATION_PROPERTY
TheTLcdDataPropertywhich represents theisDisplayUnderscaleIndication(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aBooleaninstance. -
UNDERSCALE_INDICATION_COLOR_PROPERTY
TheTLcdDataPropertywhich represents thegetUnderscaleIndicationColor(). Can be passed to thegetValue(com.luciad.datamodel.TLcdDataProperty)method, in which case the return value will be aColorinstance.
-
-
Constructor Details
-
TLcdS101DisplaySettings
Creates a new display settings instance, initialized with the settings of the given display settings.- Parameters:
aDisplaySettings- the display settings to copy the properties from
-
TLcdS101DisplaySettings
public TLcdS101DisplaySettings()Creates a newTLcdS101DisplaySettingsinstance with default display settings.
-
-
Method Details
-
setAll
Configures this display settings with the configuration of the specified display settings.- Parameters:
aDisplaySettings- the display settings from which to copy the configuration.
-
getColorPalette
Returns the S-101 color palette to be used.- Returns:
- the S-101 color palette to be used.
- See Also:
-
setColorPalette
Sets the S-101 color palette to be used.- Parameters:
aColorPalette- the color palette to be used.- See Also:
-
isSimplifiedSymbols
public boolean isSimplifiedSymbols()Returns whether the rendering of point objects is simplified or paper chart.- Returns:
truefor simplified,falsefor paper chart symbols.- See Also:
-
setSimplifiedSymbols
public void setSimplifiedSymbols(boolean aSimplifiedSymbols) Sets whether the rendering of point objects is simplified or paper chart.- Parameters:
aSimplifiedSymbols-truefor simplified,falsefor paper chart symbols.- See Also:
-
isPlainBoundaries
public boolean isPlainBoundaries()Returns whether the rendering of boundaries of area objects is plain or symbolized.- Returns:
truefor plain,falsefor symbolized boundaries- See Also:
-
setPlainBoundaries
public void setPlainBoundaries(boolean aPlainBoundaries) Sets whether the rendering of boundaries of area objects is plain or symbolized.- Parameters:
aPlainBoundaries-truefor plain,falsefor symbolized boundaries.- See Also:
-
isFullLightLines
public boolean isFullLightLines()Returns whether sector lines of lights should be displayed at full length or at a fixed pixel size.- Returns:
truefor full length,falsefor fixed-size light sector lines.- See Also:
-
setFullLightLines
public void setFullLightLines(boolean aFullLightLines) Sets whether sector lines of lights should be displayed at full length. Iffalse, only short sector lines with a fixed length in screen coordinates will be drawn.- Parameters:
aFullLightLines-truefor full length,falsefor fixed-size light sector lines.- See Also:
-
getDisplayMode
Returns the S-101 display mode to be rendered.- Returns:
- the S-101 display mode to be rendered.
- See Also:
-
setDisplayMode
Sets the S-101 display mode to be rendered. Each S-101 object falls into one of three display mode, defined by the S-101 symbology. These categories can be used as a coarse filter to control the amount of data that is rendered on a map.If the specified display mode is different from the current one, the viewing group layers are reset to the ones that correspond to the new display mode.
See the S-101 specification for more information on display mode.
- Parameters:
aDisplayMode- the S-101 display mode to be rendered.- See Also:
-
getViewingGroupLayers
Returns the set of visible viewing group layers.Warning: you should not modify the returned set directly. Instead, call the corresponding setter with a new, modified instance.
- Returns:
- The currently configured value of the viewing group layers property
- See Also:
-
setViewingGroupLayers
Set the viewing group layers property.- Parameters:
aViewingGroupLayers- the new viewing group layers value.- See Also:
-
addViewingGroupLayer
Adds the specified viewing group layer to the list of visible layers.- Parameters:
aViewingGroupLayer- the viewing group layer
-
removeViewingGroupLayer
Removes the specified viewing group layer from the list of visible layers.- Parameters:
aViewingGroupLayer- the viewing group layer
-
resetViewingGroupLayers
public void resetViewingGroupLayers()Resets the viewing group layers to the ones that correspond to thedisplay mode.- See Also:
-
isRadarOverlay
public boolean isRadarOverlay()Returns whether the radar sweep should be displayed.- Returns:
- The currently configured value of the radar overlay property
- See Also:
-
setRadarOverlay
public void setRadarOverlay(boolean aRadarOverlay) Set the radar overlay property.- Parameters:
aRadarOverlay- the new radar overlay value.- See Also:
-
getDisplayPlanes
Returns the set of visible display planes.Warning: you should not modify the returned array directly. Instead, call the corresponding setter with a new, modified instance.
- Returns:
- The currently configured value of the display planes property
- See Also:
-
setDisplayPlanes
Set the display plane property.- Parameters:
aDisplayPlanes- the new display planes value.- See Also:
-
isIgnoreScaleMinimum
public boolean isIgnoreScaleMinimum()Returns whether the scale minimum should be ignored.- Returns:
- whether scale minimum should be ignored or not.
- See Also:
-
setIgnoreScaleMinimum
public void setIgnoreScaleMinimum(boolean aIgnoreScaleMinimum) Sets whether to ignore the minimum scale for objects to be visible. If set totrue, all objects are visible at all zoom levels.- Parameters:
aIgnoreScaleMinimum- the new ignore scale minimum value.- See Also:
-
getLanguage
Returns the language used for text rendering.- Returns:
- the language used for text rendering.
- See Also:
-
setLanguage
Sets the language used for text rendering, specified as ISO 639-2/T 3-letter language code.Examples are "eng" for English, "spa" for Spanish, "fra" for French, etc.
- Parameters:
aLanguage- the ISO 639-2/T 3-letter language code- See Also:
-
getSafetyDepth
public double getSafetyDepth()Description copied from interface:ILcdDepthDisplaySettingsReturns the ship's safety depth.- Specified by:
getSafetyDepthin interfaceILcdDepthDisplaySettings- Returns:
- the ship's safety depth.
- See Also:
-
setSafetyDepth
public void setSafetyDepth(double aSafetyDepth) Description copied from interface:ILcdDepthDisplaySettingsSets the ship's safety depth. The safety depth affects the way depth soundings are rendered: depth soundings with a value less than the safety depth will be rendered in a dark color, while depth sounding with a value more than the safety depth will be rendered in a light color. The safety contour depth and safety depth are independent settings; the former affects the safety contour line and the depth area fill colors, the latter affects the depth soundings colors.- Specified by:
setSafetyDepthin interfaceILcdDepthDisplaySettings- Parameters:
aSafetyDepth- the ship's safety depth.- See Also:
-
getShallowContour
public double getShallowContour()Description copied from interface:ILcdDepthDisplaySettingsReturns the depth of the shallow contour. The shallow contour is only relevant if the two shades setting is turned off.- Specified by:
getShallowContourin interfaceILcdDepthDisplaySettings- Returns:
- the shallow contour depth.
- See Also:
-
setShallowContour
public void setShallowContour(double aShallowContour) Description copied from interface:ILcdDepthDisplaySettingsSets the depth of the shallow contour. Areas with a depth less than the shallow contour depth will be rendered in a darker color than areas with a depth more than the shallow contour depth. The shallow contour is only relevant if the two shades setting is turned off.- Specified by:
setShallowContourin interfaceILcdDepthDisplaySettings- Parameters:
aShallowContour- the shallow contour depth.- See Also:
-
getSafetyContour
public double getSafetyContour()Description copied from interface:ILcdDepthDisplaySettingsReturns the depth of the safety contour.- Specified by:
getSafetyContourin interfaceILcdDepthDisplaySettings- Returns:
- the depth of the safety contour.
- See Also:
-
setSafetyContour
public void setSafetyContour(double aSafetyContour) Description copied from interface:ILcdDepthDisplaySettingsSets the ship's safety contour depth. The safety contour is a bold line indicating the boundaries of the area in which the ship can safely navigate. All areas with a depth less than the safety contour depth (on one side of the safety contour) will be rendered with a darker color than the areas with a depth more than the safety contour depth (on the other side of the safety contour). The safety contour depth and safety depth are independent settings; the former affects the safety contour line and the depth area fill colors, the latter affects the depth soundings colors.- Specified by:
setSafetyContourin interfaceILcdDepthDisplaySettings- Parameters:
aSafetyContour- the ship's safety contour depth.- See Also:
-
getDeepContour
public double getDeepContour()Description copied from interface:ILcdDepthDisplaySettingsReturns the depth of the deep contour.- Specified by:
getDeepContourin interfaceILcdDepthDisplaySettings- Returns:
- the deep contour depth.
- See Also:
-
setDeepContour
public void setDeepContour(double aDeepContour) Description copied from interface:ILcdDepthDisplaySettingsSets the depth of the deep contour. Areas with a depth less than the deep contour depth will be rendered in a darker color than areas with a depth more than the deep contour depth. The deep contour is only relevant if the two shades setting is turned off.- Specified by:
setDeepContourin interfaceILcdDepthDisplaySettings- Parameters:
aDeepContour- the deep contour depth.- See Also:
-
isUseTwoShades
public boolean isUseTwoShades()Description copied from interface:ILcdDepthDisplaySettingsReturns whether to use a 2- or 4-color schema for depth area rendering.- Specified by:
isUseTwoShadesin interfaceILcdDepthDisplaySettings- Returns:
- whether to use a 2- or 4-color schema for depth area rendering.
- See Also:
-
setUseTwoShades
public void setUseTwoShades(boolean aUseTwoShades) Description copied from interface:ILcdDepthDisplaySettingsSets whether to use a 2- or 4-color schema for depth area rendering. Iftrue, only 2 colors will be used (darker for depths less than the safety contour, lighter for depths more than the safety contour), iffalse, 4 colors will be used (the shallow and deep contour depth will also be taken into account).- Specified by:
setUseTwoShadesin interfaceILcdDepthDisplaySettings- Parameters:
aUseTwoShades- boolean indicating whether to use a 2- or 4-color schema for depth area rendering.- See Also:
-
isShallowWaterDangers
public boolean isShallowWaterDangers()Returns whether to display isolated dangers in shallow water.- Returns:
- whether to display isolated dangers in shallow water.
- See Also:
-
setShallowWaterDangers
public void setShallowWaterDangers(boolean aShallowWaterDangers) Sets whether to display isolated dangers in shallow water.- Parameters:
aShallowWaterDangers- boolean indicating whether to display isolated dangers in shallow water.- See Also:
-
isDisplayOverscaleIndication
public boolean isDisplayOverscaleIndication()Returns whether to display an overscale indication for cells which are being viewed on a scale larger than the intended scale range.- Returns:
- whether to display an overscale indication.
- See Also:
-
setDisplayOverscaleIndication
public void setDisplayOverscaleIndication(boolean aDisplayOverscaleIndication) Sets whether to display an overscale indication for cells which are being viewed on a scale larger than the intended scale range. The overscale indication is a vertical bar pattern that is drawn on top of the cell, as defined by the S-52 specification. This setting is only applicable to cells in catalogues, not for cells which are loaded individually.- Parameters:
aDisplayOverscaleIndication- boolean indicating whether to display an overscale indication.- See Also:
-
isDisplayUnderscaleIndication
public boolean isDisplayUnderscaleIndication()Returns whether to display an underscale indication for cells which are not visible yet (the map scale is smaller than the intended scale range of the cell).- Returns:
- whether to display an underscale indication.
- See Also:
-
setDisplayUnderscaleIndication
public void setDisplayUnderscaleIndication(boolean aDisplayUnderscaleIndication) Sets whether to display an underscale indication for cells which are not visible yet (the map scale is smaller than the intended scale range of the cell). The underscale indication is a rectangle showing the bounds of the cell. It is not part of the S-52 specification. This setting is only applicable to cells in catalogues, not for cells which are loaded individually.- Parameters:
aDisplayUnderscaleIndication- boolean indicating whether to display an underscale indication.- See Also:
-
getUnderscaleIndicationColor
Returns the color in which to render the underscale indication.- Returns:
- the color in which to render the underscale indication.
- See Also:
-
setUnderscaleIndicationColor
Sets the color in which to render the underscale indication.- Parameters:
aUnderscaleIndicationColor- the color in which to render the underscale indication.- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceRegisters the given
PropertyChangeListenerto be notified when this object's properties change.In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a
ALcdWeakPropertyChangeListenerinstance as property change listener.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aPropertyChangeListener- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceDe-registers the given
PropertyChangeListenerfrom receiving property change events for this object.If the listener was added more than once, it will be notified one less time after being removed. If the listener is
null, or was never added, no exception is thrown and no action is taken.- Specified by:
removePropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aPropertyChangeListener- the listener that should no longer be notified of changes of this object's properties- See Also:
-
getDataType
Description copied from interface:ILcdDataObjectReturns the type of this data object. This can never benull.- Specified by:
getDataTypein interfaceILcdDataObject- Returns:
- the type of this data object
-
getValue
Description copied from interface:ILcdDataObjectReturns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's typeor in one of its super types. Otherwise anIllegalArgumentExceptionis thrown.- Specified by:
getValuein interfaceILcdDataObject- Parameters:
aProperty- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
getValue
Description copied from interface:ILcdDataObjectConvenience method that returns the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.getValue(TLcdDataProperty)for more information.- Specified by:
getValuein interfaceILcdDataObject- Parameters:
aPropertyName- the name of the property of which the value is to be returned- Returns:
- the value of the property with the given name
- See Also:
-
setValue
Description copied from interface:ILcdDataObjectSets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's typeor in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException.- Specified by:
setValuein interfaceILcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
setValue
Description copied from interface:ILcdDataObjectConvenience method that sets the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.setValue(TLcdDataProperty, Object)for more information.- Specified by:
setValuein interfaceILcdDataObject- Parameters:
aPropertyName- the name of the property of which the value is to be setaValue- the value to set
-
hasValue
Description copied from interface:ILcdDataObjectIndicates whether this data object has a value for the given property.aPropertyis from theright data type, and this instance has a value for it: returnstrueaPropertyis from theright data type, and this instance has no value for it: returnsfalseaPropertyis not from theright data type: not allowed, you will get IllegalArgumentExceptionaPropertyisnull: not allowed, you will get NullPointerException
- Specified by:
hasValuein interfaceILcdDataObject- Parameters:
aProperty- the property for which to return whether a value is present or not.- Returns:
trueif this data object has a value for the given property,falseotherwise.
-
hasValue
Description copied from interface:ILcdDataObjectIndicates whether this data object has a value for the given property.
SeeILcdDataObject.hasValue(TLcdDataProperty)for more information.- Specified by:
hasValuein interfaceILcdDataObject- Parameters:
aPropertyName- the name of the property for which to return whether a value is present or not.- Returns:
trueif this data object has a value for the property with the given name,falseotherwise.
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.clone()public.java.lang.Object, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-