/** * Getter for the base mappings used by this Cache. Modifications on the * returned object do not have any influence on the mappings, because this * method returns a clone. Use {@link #setBaseMappings(FieldMapper)} to * change the used base mappings. However make sure you understand the * implications of changing the base mappings as described in the * documentation of the setter method * * @return A clone of the base mappings or <code>null</code> if no base * mappings are defined */ @Override public final FieldMapper getBaseMappings() { return baseMapper == null ? null : baseMapper.clone(); }
/** * Getter for the base mappings used by this Cache. Modifications on the * returned object do not have any influence on the mappings, because this * method returns a clone. Use {@link #setBaseMappings(FieldMapper)} to * change the used base mappings. However make sure you understand the * implications of changing the base mappings as described in the * documentation of the setter method * * @return A clone of the base mappings or <code>null</code> if no base * mappings are defined */ @Override public final FieldMapper getBaseMappings() { return baseMapper == null ? null : baseMapper.clone(); }
/** * Getter for the additional mappings used by this Cache. Modifications on the * returned object do not have any influence on the mappings, because this * method returns a clone. Use {@link #setAdditionalMappings(FieldMapper)} to * change the used additional mappings. However make sure you understand the * implications of changing the base mappings as described in the * documentation of the setter method * * @return A clone of the additional mappings or <code>null</code> if no * additional mappings are defined */ @Override public final FieldMapper getAdditionalMappings() { return additionalMapper == null ? null : additionalMapper.clone(); }
/** * Getter for the additional mappings used by this Cache. Modifications on the * returned object do not have any influence on the mappings, because this * method returns a clone. Use {@link #setAdditionalMappings(FieldMapper)} to * change the used additional mappings. However make sure you understand the * implications of changing the base mappings as described in the * documentation of the setter method * * @return A clone of the additional mappings or <code>null</code> if no * additional mappings are defined */ @Override public final FieldMapper getAdditionalMappings() { return additionalMapper == null ? null : additionalMapper.clone(); }
fieldMapper = dereferencer.getFieldMapper().clone(); } else { fieldMapper = null;
FieldMapper mapper = this.fieldMapper.clone(); for(FieldMapping siteMapping : siteMapper.getMappings()){ mapper.addMapping(siteMapping);
FieldMapper mapper = this.fieldMapper.clone(); for(FieldMapping siteMapping : siteMapper.getMappings()){ mapper.addMapping(siteMapping);