Class FeatureCollectionRole
java.lang.Object
org.openjump.core.apitools.objecttyperoles.FeatureCollectionRole
- Direct Known Subclasses:
RoleApplicationGrid, RoleOutline, RolePointFeatures, RoleStandardFeatureCollection, RoleTriangularIrregularNet
Base class for different roles of a PirolFeatureCollection, like RasterImage, Grid, Outline, etc.
- Version:
- $Rev: 2434 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of existent roles rolesprotected FeatureCollectionRoleTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearRam()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.booleanbooleanbooleanequalsRole(int roleID) Check if this role is the same type of role as the given role id.booleanCheck if this role is the same type of role as the given one.booleanequalsRole(FeatureCollectionRoleTypes roleType) Check if this role is the same type of role as the given one.intgetType()
-
Field Details
-
type
-
numOfExistentRoles
public static final int numOfExistentRolesNumber of existent roles roles
-
-
Constructor Details
-
FeatureCollectionRole
-
-
Method Details
-
getRoleId
public int getRoleId()- Returns:
- an integer that specifies the role type of the derived role object
- See Also:
-
getType
-
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
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
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:
-
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.
-