public String getId() {
        return this.type == null ? "" : this.type.getTypeId();
    }
Base implementation for common (non-logical) geocache filters
main/src/main/java/cgeo/geocaching/filters/core/BaseGeocacheFilter.java