opengeospatial / geoapi

GeoAPI provides a set of interfaces in programming languages (currently Java and Python) for geospatial applications. The GeoAPI interfaces closely follow OGC specifications, adaptated to match the expectations of programmers.
http://www.geoapi.org
Apache License 2.0
118 stars 37 forks source link

Do not force implementors to provide optional methods #47

Closed desruisseaux closed 5 years ago

desruisseaux commented 5 years ago

Currently, implementors have to implement all methods enumerated in a Java interface, including the ones declared as optional in OGC/ISO abstract specification. Implementors should be forced to provide only mandatory methods. Other methods should have a default implementation returning Collections.emptyList() if applicable, or null otherwise.

Note that we are already doing that for Python abstract classes. This issue is about doing the same thing for Java interfaces.

desruisseaux commented 5 years ago

Completed. Design notes at https://github.com/opengeospatial/geoapi/wiki/Design-notes-(Java)