- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
FeatureCollection featureCollection = it.next(); FeatureCollectionType member = Wfs20Factory.eINSTANCE.createFeatureCollectionType(); member.setTimeStamp((Calendar) EMFUtils.get(fc, "timeStamp")); member.getMember().add(featureCollection);
@Override public FeatureCollectionResponse create() { return FeatureCollectionResponse.adapt( ((Wfs20Factory) getFactory()).createFeatureCollectionType()); }
@Override public FeatureCollectionResponse createResponse() { return new FeatureCollectionResponse.WFS20( ((Wfs20Factory) getFactory()).createFeatureCollectionType()); }
FeatureCollection featureCollection = it.next(); FeatureCollectionType member = Wfs20Factory.eINSTANCE.createFeatureCollectionType(); member.setTimeStamp((Calendar) EMFUtils.get(fc, "timeStamp")); member.getMember().add(featureCollection);
@Override public Object unadapt(Class target) { if (target.equals(FeatureCollectionType.class)) { return adaptee; } else if (target.equals(net.opengis.wfs20.FeatureCollectionType.class)) { FeatureCollectionType source = (FeatureCollectionType) adaptee; net.opengis.wfs20.FeatureCollectionType result = Wfs20Factory.eINSTANCE.createFeatureCollectionType(); result.getMember().addAll(source.getFeature()); result.setNumberReturned(source.getNumberOfFeatures()); result.setLockId(source.getLockId()); result.setTimeStamp(source.getTimeStamp()); return result; } else { throw new WFSException( "Cannot transform " + adaptee + " to the specified target class " + target); } } }