comparison src/main/java/de/intevation/lada/validation/LOrtValidator.java @ 263:2098db2e8fbd M1

Code documentation.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 17 Jul 2013 09:40:53 +0200
parents 0de24f5e7c01
children f3c58d3c4bc7
comparison
equal deleted inserted replaced
262:f4b359aa9127 263:2098db2e8fbd
11 @ApplicationScoped 11 @ApplicationScoped
12 @Named("lortvalidator") 12 @Named("lortvalidator")
13 public class LOrtValidator 13 public class LOrtValidator
14 implements Validator 14 implements Validator
15 { 15 {
16 16 /**
17 * Validate a LOrt object.
18 *
19 * @param object The LOrt object.
20 * @param update The database operation.
21 * TRUE indicates that the object should be updated, FALSE
22 * if the object is a new Object.
23 * @return Map containing warnings.
24 */
17 @Override 25 @Override
18 public Map<String, Integer> validate(Object object, boolean update) 26 public Map<String, Integer> validate(Object object, boolean update)
19 throws ValidationException { 27 throws ValidationException {
20 Map<String, Integer> warnings = new HashMap<String, Integer>(); 28 Map<String, Integer> warnings = new HashMap<String, Integer>();
21 if (!(object instanceof LOrt)) { 29 if (!(object instanceof LOrt)) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)