Class Contents


  • public class Contents
    extends Object
    Contents object. Provides identifying and descriptive information that an application can display to a user in a menu of geospatial data that is available for access and/or update.
    Author:
    osbornb
    • Constructor Detail

      • Contents

        public Contents()
        Default Constructor
      • Contents

        public Contents​(Contents contents)
        Copy Constructor
        Parameters:
        contents - contents to copy
        Since:
        1.3.0
    • Method Detail

      • getId

        public String getId()
        Get the id
        Returns:
        id
      • setId

        public void setId​(String id)
        Set the id
        Parameters:
        id - id
      • getTableName

        public String getTableName()
        Get the table name
        Returns:
        table name
      • setTableName

        public void setTableName​(String tableName)
        Set the table name
        Parameters:
        tableName - table name
      • getDataType

        public ContentsDataType getDataType()
        Get the data type
        Returns:
        data type
      • setDataType

        public void setDataType​(ContentsDataType dataType)
        Set the data type
        Parameters:
        dataType - data type
      • getDataTypeName

        public String getDataTypeName()
        Get the data type string value
        Returns:
        data type
        Since:
        4.0.0
      • setDataTypeName

        public void setDataTypeName​(String name)
        Set the data type name
        Parameters:
        name - data type name
        Since:
        4.0.0
      • setDataTypeName

        public void setDataTypeName​(String name,
                                    ContentsDataType dataType)
        Set the data type name and register the core data type
        Parameters:
        name - data type name
        dataType - core data type
      • isFeaturesType

        public boolean isFeaturesType()
        Determine if the contents data type is features
        Returns:
        true if features type
        Since:
        4.0.0
      • isFeaturesTypeOrUnknown

        public boolean isFeaturesTypeOrUnknown()
        Determine if the contents data type is features or unknown
        Returns:
        true if features type or unknown
        Since:
        4.0.0
      • isTilesType

        public boolean isTilesType()
        Determine if the contents data type is tiles
        Returns:
        true if tiles type
        Since:
        4.0.0
      • isTilesTypeOrUnknown

        public boolean isTilesTypeOrUnknown()
        Determine if the contents data type is tiles or unknown
        Returns:
        true if tiles type or unknown
        Since:
        4.0.0
      • isAttributesType

        public boolean isAttributesType()
        Determine if the contents data type is attributes
        Returns:
        true if attributes type
        Since:
        4.0.0
      • isAttributesTypeOrUnknown

        public boolean isAttributesTypeOrUnknown()
        Determine if the contents data type is attributes or unknown
        Returns:
        true if attributes type or unknown
        Since:
        4.0.0
      • getIdentifier

        public String getIdentifier()
        Get the identifier
        Returns:
        identifier
      • setIdentifier

        public void setIdentifier​(String identifier)
        Set the identifier
        Parameters:
        identifier - identifier
      • getDescription

        public String getDescription()
        Get the description
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        Set the description
        Parameters:
        description - description
      • getLastChange

        public Date getLastChange()
        Get the last change
        Returns:
        last change
      • setLastChange

        public void setLastChange​(Date lastChange)
        Set the last change
        Parameters:
        lastChange - last change
      • getMinX

        public Double getMinX()
        Get the min x
        Returns:
        min x
      • setMinX

        public void setMinX​(Double minX)
        Set the min x
        Parameters:
        minX - min x
      • getMinY

        public Double getMinY()
        Get the min y
        Returns:
        min y
      • setMinY

        public void setMinY​(Double minY)
        Set the min y
        Parameters:
        minY - min y
      • getMaxX

        public Double getMaxX()
        Get the max x
        Returns:
        max x
      • setMaxX

        public void setMaxX​(Double maxX)
        Set the max x
        Parameters:
        maxX - max x
      • getMaxY

        public Double getMaxY()
        Get the max y
        Returns:
        max y
      • setMaxY

        public void setMaxY​(Double maxY)
        Set the max y
        Parameters:
        maxY - max y
      • getSrsId

        public Long getSrsId()
        Get the srs id
        Returns:
        srs id
      • getGeometryColumns

        public GeometryColumns getGeometryColumns()
        Get the Geometry Columns, should only return one or no value
        Returns:
        geometry columns
      • getTileMatrixSet

        public TileMatrixSet getTileMatrixSet()
        Get the Tile Matrix Set, should only return one or no value
        Returns:
        tile matrix set
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Get a bounding box
        Returns:
        bounding box
      • getBoundingBox

        public BoundingBox getBoundingBox​(Projection projection)
        Get a bounding box in the provided projection
        Parameters:
        projection - desired projection
        Returns:
        bounding box
        Since:
        3.1.0
      • setBoundingBox

        public void setBoundingBox​(BoundingBox boundingBox)
        Set a bounding box
        Parameters:
        boundingBox - bounding box
      • getProjection

        public Projection getProjection()
        Get the projection
        Returns:
        projection
        Since:
        3.1.0