Package org.opengis.util
Interface CodeList.Filter
-
public static interface CodeList.FilterUsed byCodeList.valueOf(Class, Filter)to select codes matching an arbitrary criterion.- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(CodeList<?> code)Returnstrueif the given code matches the criterion defined by this filter.java.lang.Stringcodename()Returns the name of the code being looked for, ornullif unknown.
-
-
-
Method Detail
-
accept
boolean accept(CodeList<?> code)
Returnstrueif the given code matches the criterion defined by this filter.- Parameters:
code- The code to test.- Returns:
trueif the code matches the criterion.
-
codename
java.lang.String codename()
Returns the name of the code being looked for, ornullif unknown. This method is invoked byCodeList.valueOf(Class, Filter)if no code match the criterion defined by this filter. In such case, there is a choice:- If this method returns a non-null name, then a new code of that name is created.
- Otherwise, no new code is created and
CodeList.valueOfreturnsnull.
- Returns:
- The name of the code being looked for, or
null.
-
-