Class Layer

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class Layer
    extends PersistentObject
    Representation of a layer which consists a corresponding data source and an appearance
    Author:
    Kai Volland, Nils Bühner, terrestris GmbH & Co. KG
    See Also:
    Serialized Form
    • Constructor Detail

      • Layer

        public Layer()
      • Layer

        public Layer​(java.lang.String name)
        Parameters:
        name - Layer name
      • Layer

        public Layer​(java.lang.String name,
                     LayerDataSource source,
                     LayerAppearance appearance)
        Parameters:
        name - Layer name
        source -
        appearance -
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - the name to set
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description
      • setDescription

        public void setDescription​(java.lang.String description)
        Parameters:
        description - the description to set
      • setSource

        public void setSource​(LayerDataSource source)
        Parameters:
        source - the source to set
      • getAppearance

        public LayerAppearance getAppearance()
        Returns:
        the appearance
      • setAppearance

        public void setAppearance​(LayerAppearance appearance)
        Parameters:
        appearance - the appearance to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class PersistentObject
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class PersistentObject
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate