test_class.declarator: layer
test_class.modifier: @Autowired
  	@Qualifier("beans")
  	private
test_class.original_string: @Autowired
  	@Qualifier("beans")
  	private VectorLayer layer;
test_class.type: VectorLayer
test_class.var_name: layer
test_class.declarator: filterService
test_class.modifier: @Autowired
  	protected
test_class.original_string: @Autowired
  	protected FilterService filterService;
test_class.type: FilterService
test_class.var_name: filterService
test_class.file: impl/src/test/java/org/geomajas/layer/bean/BeanLayerTest.java
test_class.identifier: BeanLayerTest
test_case.body: @Test
  	public void simpleFilter() throws Exception {
  		Filter filter = filterService.createCompareFilter("stringAttr", "=", "bean2");
  		Iterator<?> it = layer.getElements(filter, 0, 0);
  		int t = 0;
  		while (it.hasNext()) {
  			Assert.assertTrue(it.next() instanceof FeatureBean);
  			t++;
  		}
  		Assert.assertEquals(1, t);
  	}
test_case.class_method_signature: BeanLayerTest.simpleFilter()
test_case.full_signature: @Test public void simpleFilter()
test_case.identifier: simpleFilter
test_case.invocations: createCompareFilter getElements hasNext assertTrue next assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void simpleFilter()
focal_class.declarator: log = LoggerFactory.getLogger(BeanLayer.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(BeanLayer.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: featuresById = new LinkedHashMap<String, Object>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Object> featuresById = new LinkedHashMap<String, Object>();
focal_class.type: Map<String, Object>
focal_class.var_name: featuresById
focal_class.declarator: features = new ArrayList<Object>()
focal_class.modifier: private final
focal_class.original_string: private final List<Object> features = new ArrayList<Object>();
focal_class.type: List<Object>
focal_class.var_name: features
focal_class.declarator: featureModel
focal_class.modifier: private
focal_class.original_string: private BeanFeatureModel featureModel;
focal_class.type: BeanFeatureModel
focal_class.var_name: featureModel
focal_class.declarator: layerInfo
focal_class.modifier: private
focal_class.original_string: private VectorLayerInfo layerInfo;
focal_class.type: VectorLayerInfo
focal_class.var_name: layerInfo
focal_class.declarator: random = new Random()
focal_class.modifier: private final
focal_class.original_string: private final Random random = new Random();
focal_class.type: Random
focal_class.var_name: random
focal_class.declarator: filterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private FilterService filterService;
focal_class.type: FilterService
focal_class.var_name: filterService
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.declarator: converterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService converterService;
focal_class.type: DtoConverterService
focal_class.var_name: converterService
focal_class.declarator: entityMappingService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private EntityAttributeService entityMappingService;
focal_class.type: EntityAttributeService
focal_class.var_name: entityMappingService
focal_class.declarator: crs
focal_class.modifier: private
focal_class.original_string: private CoordinateReferenceSystem crs;
focal_class.type: CoordinateReferenceSystem
focal_class.var_name: crs
focal_class.declarator: comparator
focal_class.modifier: protected
focal_class.original_string: protected Comparator<Object> comparator;
focal_class.type: Comparator<Object>
focal_class.var_name: comparator
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: nextId = 1
focal_class.modifier: private
focal_class.original_string: private int nextId = 1;
focal_class.type: int
focal_class.var_name: nextId
focal_class.declarator: useLazyFeatureConversion
focal_class.modifier: private
focal_class.original_string: private boolean useLazyFeatureConversion;
focal_class.type: boolean
focal_class.var_name: useLazyFeatureConversion
focal_class.file: impl/src/main/java/org/geomajas/layer/bean/BeanLayer.java
focal_class.identifier: BeanLayer
focal_class.interfaces: implements VectorLayer, VectorLayerAssociationSupport, VectorLayerLazyFeatureConversionSupport
focal_class.class_method_signature: BeanLayer.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: BeanLayer.setId(String id)
focal_class.full_signature: @Api public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: @Api public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: BeanLayer.getCrs()
focal_class.full_signature: public CoordinateReferenceSystem getCrs()
focal_class.identifier: getCrs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CoordinateReferenceSystem
focal_class.signature: CoordinateReferenceSystem getCrs()
focal_class.class_method_signature: BeanLayer.isCreateCapable()
focal_class.full_signature: public boolean isCreateCapable()
focal_class.identifier: isCreateCapable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCreateCapable()
focal_class.class_method_signature: BeanLayer.isUpdateCapable()
focal_class.full_signature: public boolean isUpdateCapable()
focal_class.identifier: isUpdateCapable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isUpdateCapable()
focal_class.class_method_signature: BeanLayer.isDeleteCapable()
focal_class.full_signature: public boolean isDeleteCapable()
focal_class.identifier: isDeleteCapable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDeleteCapable()
focal_class.class_method_signature: BeanLayer.useLazyFeatureConversion()
focal_class.full_signature: public boolean useLazyFeatureConversion()
focal_class.identifier: useLazyFeatureConversion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean useLazyFeatureConversion()
focal_class.class_method_signature: BeanLayer.setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.full_signature: @Api public void setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.identifier: setUseLazyFeatureConversion
focal_class.modifiers: @Api public
focal_class.parameters: (boolean useLazyFeatureConversion)
focal_class.return: void
focal_class.signature: void setUseLazyFeatureConversion(boolean useLazyFeatureConversion)
focal_class.class_method_signature: BeanLayer.getElements(Filter filter, int offset, int maxResultSize)
focal_class.full_signature: public Iterator<?> getElements(Filter filter, int offset, int maxResultSize)
focal_class.identifier: getElements
focal_class.modifiers: public
focal_class.parameters: (Filter filter, int offset, int maxResultSize)
focal_class.return: Iterator<?>
focal_class.signature: Iterator<?> getElements(Filter filter, int offset, int maxResultSize)
focal_class.class_method_signature: BeanLayer.getBounds()
focal_class.full_signature: public Envelope getBounds()
focal_class.identifier: getBounds
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Envelope
focal_class.signature: Envelope getBounds()
focal_class.class_method_signature: BeanLayer.getBounds(Filter queryFilter)
focal_class.full_signature: public Envelope getBounds(Filter queryFilter)
focal_class.identifier: getBounds
focal_class.modifiers: public
focal_class.parameters: (Filter queryFilter)
focal_class.return: Envelope
focal_class.signature: Envelope getBounds(Filter queryFilter)
focal_class.class_method_signature: BeanLayer.getFeatureModel()
focal_class.full_signature: public FeatureModel getFeatureModel()
focal_class.identifier: getFeatureModel
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: FeatureModel
focal_class.signature: FeatureModel getFeatureModel()
focal_class.class_method_signature: BeanLayer.setLayerInfo(VectorLayerInfo layerInfo)
focal_class.full_signature: public void setLayerInfo(VectorLayerInfo layerInfo)
focal_class.identifier: setLayerInfo
focal_class.modifiers: public
focal_class.parameters: (VectorLayerInfo layerInfo)
focal_class.return: void
focal_class.signature: void setLayerInfo(VectorLayerInfo layerInfo)
focal_class.class_method_signature: BeanLayer.getLayerInfo()
focal_class.full_signature: public VectorLayerInfo getLayerInfo()
focal_class.identifier: getLayerInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: VectorLayerInfo
focal_class.signature: VectorLayerInfo getLayerInfo()
focal_class.class_method_signature: BeanLayer.create(Object feature)
focal_class.full_signature: public Object create(Object feature)
focal_class.identifier: create
focal_class.modifiers: public
focal_class.parameters: (Object feature)
focal_class.return: Object
focal_class.signature: Object create(Object feature)
focal_class.class_method_signature: BeanLayer.read(String featureId)
focal_class.full_signature: public Object read(String featureId)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (String featureId)
focal_class.return: Object
focal_class.signature: Object read(String featureId)
focal_class.class_method_signature: BeanLayer.saveOrUpdate(Object feature)
focal_class.full_signature: public Object saveOrUpdate(Object feature)
focal_class.identifier: saveOrUpdate
focal_class.modifiers: public
focal_class.parameters: (Object feature)
focal_class.return: Object
focal_class.signature: Object saveOrUpdate(Object feature)
focal_class.class_method_signature: BeanLayer.delete(String featureId)
focal_class.full_signature: public void delete(String featureId)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (String featureId)
focal_class.return: void
focal_class.signature: void delete(String featureId)
focal_class.class_method_signature: BeanLayer.getFeatures()
focal_class.full_signature: public List<Object> getFeatures()
focal_class.identifier: getFeatures
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Object>
focal_class.signature: List<Object> getFeatures()
focal_class.class_method_signature: BeanLayer.setFeatures(List<Object> features)
focal_class.full_signature: public void setFeatures(List<Object> features)
focal_class.identifier: setFeatures
focal_class.modifiers: public
focal_class.parameters: (List<Object> features)
focal_class.return: void
focal_class.signature: void setFeatures(List<Object> features)
focal_class.class_method_signature: BeanLayer.getAttributes(String attributeName, Filter filter)
focal_class.full_signature: public List<Attribute<?>> getAttributes(String attributeName, Filter filter)
focal_class.identifier: getAttributes
focal_class.modifiers: public
focal_class.parameters: (String attributeName, Filter filter)
focal_class.return: List<Attribute<?>>
focal_class.signature: List<Attribute<?>> getAttributes(String attributeName, Filter filter)
focal_class.class_method_signature: BeanLayer.getFeatureInfo()
focal_class.full_signature: protected FeatureInfo getFeatureInfo()
focal_class.identifier: getFeatureInfo
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: FeatureInfo
focal_class.signature: FeatureInfo getFeatureInfo()
focal_class.class_method_signature: BeanLayer.initFeatureModel()
focal_class.full_signature: protected void initFeatureModel()
focal_class.identifier: initFeatureModel
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initFeatureModel()
focal_class.class_method_signature: BeanLayer.initComparator()
focal_class.full_signature: protected void initComparator()
focal_class.identifier: initComparator
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initComparator()
focal_method.body: public Iterator<?> getElements(Filter filter, int offset, int maxResultSize) throws LayerException {
  		if (null == filter) {
  			filter = Filter.INCLUDE;
  		}
  		List<Object> filteredList = new ArrayList<Object>();
  		try {
  			synchronized (featuresById) {
  				for (Object feature : featuresById.values()) {
  					if (filter.evaluate(feature)) {
  						filteredList.add(feature);
  					}
  				}
  			}
  		} catch (Exception e) { // NOSONAR
  			throw new LayerException(e, ExceptionCode.FILTER_EVALUATION_PROBLEM, filter, getId());
  		}
  		// Sorting of elements.
  		if (comparator != null) {
  			Collections.sort(filteredList, comparator);
  		}
  		if (maxResultSize > 0) {
  			int fromIndex = Math.max(0, offset);
  			int toIndex = Math.min(offset + maxResultSize, filteredList.size());
  			toIndex = Math.max(fromIndex, toIndex);
  			return filteredList.subList(fromIndex, toIndex).iterator();
  		} else {
  			return filteredList.iterator();
  		}
  	}
focal_method.class_method_signature: BeanLayer.getElements(Filter filter, int offset, int maxResultSize)
focal_method.full_signature: public Iterator<?> getElements(Filter filter, int offset, int maxResultSize)
focal_method.identifier: getElements
focal_method.invocations: values evaluate add getId sort max min size max iterator subList iterator
focal_method.modifiers: public
focal_method.parameters: (Filter filter, int offset, int maxResultSize)
focal_method.return: Iterator<?>
focal_method.signature: Iterator<?> getElements(Filter filter, int offset, int maxResultSize)