Package org.opentcs.access.to.model
Class ModelLayoutElementCreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.model.ModelLayoutElementCreationTO
- All Implemented Interfaces:
java.io.Serializable
@Deprecated @ScheduledApiChange(details="Will be removed.", when="6.0") public class ModelLayoutElementCreationTO extends CreationTO implements java.io.Serializable
Deprecated.
Will be removed in favor of dedicated layout classes in corresponding TCS data
objects.
A transfer object describing a model layout element in the visual layout.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ModelLayoutElementCreationTO(java.lang.String name)
Deprecated.Creates a new instance. -
Method Summary
Modifier and Type Method Description int
getLayer()
Deprecated.Returns the layer on which this model layout element is to be displayed.ModelLayoutElementCreationTO
withLayer(int layer)
Deprecated.Creates a copy of this object with the given layer on which this model layout element is to be displayed.ModelLayoutElementCreationTO
withName(java.lang.String name)
Deprecated.Creates a copy of this object with the given name.ModelLayoutElementCreationTO
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.Creates a copy of this object with the given properties.ModelLayoutElementCreationTO
withProperty(java.lang.String key, java.lang.String value)
Deprecated.Creates a copy of this object and adds the given property.Methods inherited from class org.opentcs.access.to.CreationTO
getModifiableProperties, getName, getProperties, listWithAppendix, mapWithMapping, propertiesWith
-
Constructor Details
-
ModelLayoutElementCreationTO
public ModelLayoutElementCreationTO(java.lang.String name)Deprecated.Creates a new instance.- Parameters:
name
- The name of this model layout element.
-
-
Method Details
-
withName
Deprecated.Creates a copy of this object with the given name.- Overrides:
withName
in classCreationTO
- Parameters:
name
- The new name.- Returns:
- A copy of this object, differing in the given name.
-
withProperties
public ModelLayoutElementCreationTO withProperties(@Nonnull java.util.Map<java.lang.String,java.lang.String> properties)Deprecated.Creates a copy of this object with the given properties.- Overrides:
withProperties
in classCreationTO
- Parameters:
properties
- The new properties.- Returns:
- A copy of this object, differing in the given properties.
-
withProperty
public ModelLayoutElementCreationTO withProperty(@Nonnull java.lang.String key, @Nonnull java.lang.String value)Deprecated.Creates a copy of this object and adds the given property. If value == null, then the key-value pair is removed from the properties.- Overrides:
withProperty
in classCreationTO
- Parameters:
key
- the key.value
- the value- Returns:
- A copy of this object that either includes the given entry in it's current properties, if value != null or excludes the entry otherwise.
-
getLayer
public int getLayer()Deprecated.Returns the layer on which this model layout element is to be displayed.- Returns:
- The layer on which this model layout element is to be displayed.
-
withLayer
Deprecated.Creates a copy of this object with the given layer on which this model layout element is to be displayed.- Parameters:
layer
- The new layer- Returns:
- A copy of this object, differing in the given layer.
-