CodeList.Filter (Apache SIS 1.6 API) JavaScript is disabled on your browser.     Skip navigation links Overview Class Use Tree New Deprecated Index Search Help org.opengis.geoapi org.opengis.util CodeList Filter Contents  Description Method Summary Method Details accept(CodeList) codename() Hide sidebar  Show sidebar Interface CodeList.Filter Enclosing class: Code­List<E extends Code­List<E>> public static interface CodeList.Filter Used by Code­List​.value­Of(Class, Filter) to select codes matching an arbitrary criterion. Since: 2.3 Method Summary All MethodsInstance MethodsAbstract Methods Modifier and Type Method Description boolean accept(Code­List<?> 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 Details accept boolean accept(CodeList<?> code) Returns true if the given code matches the criterion defined by this filter. Parameters: code - The code to test. Returns: true if the code matches the criterion. codename String codename() Returns the name of the code being looked for, or null if unknown. This method is invoked by Code­List​.value­Of(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 Code­List​.value­Of returns null. Returns: The name of the code being looked for, or null.