|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface CodeList.Filter
Used by CodeList.valueOf(Class, Filter)
to select codes matching an arbitrary
criterion.
Departure from OGC/ISO specification:
The innerCodeList.Filter
interface is not part of the OGC specification. It has been added becauseCodeList
is one of the few concrete classes in GeoAPI and there is a need to give some user control over the behavior of theCodeList
implementation.
Method Summary | |
---|---|
boolean |
accept(CodeList<?> code)
Returns true if the given code matches the criterion defined by this filter. |
String |
codename()
Returns the name of the code being looked for, or null if unknown. |
Method Detail |
---|
boolean accept(CodeList<?> code)
true
if the given code matches the criterion defined by this filter.
code
- The code to test.
true
if the code matches the criterion.String codename()
null
if unknown.
This method is invoked by CodeList.valueOf(Class, Filter)
if no code
match the criterion defined by this filter. In such case, there is a choice:
CodeList.valueOf
returns null
.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |