Class FeatureCollectionRole

    • Field Detail

      • numOfExistentRoles

        public static final int numOfExistentRoles
        Number of existent roles roles
    • Method Detail

      • getRoleId

        public int getRoleId()
        Returns:
        an integer that specifies the role type of the derived role object
        See Also:
        FeatureCollectionRoleTypes
      • containsGrid

        public boolean containsGrid()
        Returns:
        true if it contains gridded data (e.g. grid layer), else false
      • containsImage

        public boolean containsImage()
        Returns:
        true if it contains raster data (e.g. raster image layer), else false
      • equalsRole

        public boolean equalsRole​(FeatureCollectionRole role)
        Check if this role is the same type of role as the given one. Caution: If this role contains specific information (like RasterImage role), this information is not checked for equality - Only the type of the role is checked!
        Parameters:
        role - role to check for type equality
        Returns:
        true if this role is the same type of role as the given one, else false
      • equalsRole

        public boolean equalsRole​(FeatureCollectionRoleTypes roleType)
        Check if this role is the same type of role as the given one. Caution: If this role contains specific information (like RasterImage role), this information is not checked for equality - Only the type of the role is checked!
        Parameters:
        roleType - role to check for type equality
        Returns:
        true if this role is the same type of role as the given one, else false
      • equalsRole

        public boolean equalsRole​(int roleID)
        Check if this role is the same type of role as the given role id.
        Parameters:
        roleID - id of the role type to check for type equality
        Returns:
        true if this role is the same type of role as the given ID, else false
        See Also:
        FeatureCollectionRoleTypes
      • clearRam

        public void clearRam()
        Method to be called e.g. by a FeatureCollection, when it's disposed to free RAM that may be bound in references to objects, that are still referenced by other objects, but won't be used without the FeatureCollection.