Toggle navigation
Home
java.util.Collection to org.geoserver.wfs3.response.CollectionDocument
No. of Instances - 4
No. of Commits - 1
No. of Projects - {'geoserver'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Cascading Type Change (Similar)
Collection
to
CollectionDocument
Iterator<Collection>
to
Iterator<CollectionDocument>
Update Anonymous class
{ Collection next; @Override public boolean hasNext(){ if (next != null) { return true; } boolean hasNext=featureTypes.hasNext(); if (!hasNext) { featureTypes.close(); return false; } else { try { FeatureTypeInfo featureType=featureTypes.next(); next=mapToCollection(featureType); return true; } catch ( Exception e) { featureTypes.close(); throw new ServiceException("Failed to iterate over the feature types in the catalog",e); } } } @Override public Collection next(){ Collection result=next; this.next=null; return result; } }
to
{ CollectionDocument next; @Override public boolean hasNext(){ if (next != null) { return true; } boolean hasNext=featureTypes.hasNext(); if (!hasNext) { featureTypes.close(); return false; } else { try { FeatureTypeInfo featureType=featureTypes.next(); CollectionDocument collection=new CollectionDocument(request,featureType); next=collection; return true; } catch ( Exception e) { featureTypes.close(); throw new ServiceException("Failed to iterate over the feature types in the catalog",e); } } } @Override public CollectionDocument next(){ CollectionDocument result=next; this.next=null; return result; } }
Add or Remove Method invocation
mapToCollection(featureType)
to
collection