Package com.luciad.format.dgn
Class ALcdDGNLevelFilter
java.lang.Object
com.luciad.format.dgn.ALcdDGNLevelFilter
- All Implemented Interfaces:
ILcdFilter
,Serializable
,Predicate
This class describes a DGN level filter.
A filter is a subset of levels.
You can check if a given level is included by this filter through contains(com.luciad.format.dgn.TLcdDGNLevel)
.
You can retrieve all accepted levels through getLevelIDs()
.
This filter is also an ILcdFilter
that accepts model elements that correspond to
its set of levels. Cells are accepted if at least on element inside is accepted.
- Since:
- 10.2
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
ALcdDGNLevelFilter
(String aName) Creates a new level filter -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests if a given object passes the filter or not.abstract boolean
contains
(int aLevelID) Checks whether the given level is included in this filter.boolean
contains
(TLcdDGNLevel aLevel) Checks whether the given level is included in this filter.abstract int[]
Return all levels that are accepted by this filter.getName()
Returns the name of this filtertoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFilter
test
-
Constructor Details
-
ALcdDGNLevelFilter
Creates a new level filter- Parameters:
aName
- The filter name
-
-
Method Details
-
getName
Returns the name of this filter- Returns:
- The filter's name
-
contains
Checks whether the given level is included in this filter.- Parameters:
aLevel
- A level- Returns:
true
if the level is included,false
if the level is excluded
-
contains
public abstract boolean contains(int aLevelID) Checks whether the given level is included in this filter.- Parameters:
aLevelID
- A level ID (code)- Returns:
true
if the level is included,false
if the level is excluded
-
getLevelIDs
public abstract int[] getLevelIDs()Return all levels that are accepted by this filter.- Returns:
- the level IDs (codes) that are accepted by this filter.
-
accept
Tests if a given object passes the filter or not. The actual test condition is specified by the implementation of this interface. Passes DGN model elements that are included in the set of levels.- Specified by:
accept
in interfaceILcdFilter
- Parameters:
aObject
- the object to be tested by the filter.- Returns:
true
if the object passes the filter,false
otherwise.
-
toString
-