|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -144,4 +144,15 @@ public class ModelMap extends LinkedHashMap<String, Object> {
@@ -144,4 +144,15 @@ public class ModelMap extends LinkedHashMap<String, Object> {
|
|
|
|
|
return containsKey(attributeName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Return the attribute value for the given name, if any. |
|
|
|
|
* @param attributeName the name of the model attribute (never {@code null}) |
|
|
|
|
* @return the corresponding attribute value, or {@code null} if none |
|
|
|
|
* @since 5.2 |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
public Object getAttribute(String attributeName) { |
|
|
|
|
return get(attributeName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|