Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ReadOnlyPropertyException |
|
|
1.0;1 |
1 | /* |
|
2 | * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH |
|
3 | * |
|
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 | * you may not use this file except in compliance with the License. |
|
6 | * You may obtain a copy of the License at |
|
7 | * |
|
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 | * |
|
10 | * Unless required by applicable law or agreed to in writing, software |
|
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 | * See the License for the specific language governing permissions and |
|
14 | * limitations under the License. |
|
15 | */ |
|
16 | package de.smartics.properties.api.core.domain; |
|
17 | ||
18 | /** |
|
19 | * Signals that the a read-only property was requested to be updated. |
|
20 | */ |
|
21 | 0 | public class ReadOnlyPropertyException extends PropertyDescriptorException |
22 | { |
|
23 | // ********************************* Fields ********************************* |
|
24 | ||
25 | // --- constants ------------------------------------------------------------ |
|
26 | ||
27 | /** |
|
28 | * The class version identifier. |
|
29 | * <p> |
|
30 | * The value of this constant is {@value}. |
|
31 | * </p> |
|
32 | */ |
|
33 | private static final long serialVersionUID = 1L; |
|
34 | ||
35 | // --- members -------------------------------------------------------------- |
|
36 | ||
37 | // ****************************** Initializer ******************************* |
|
38 | ||
39 | // ****************************** Constructors ****************************** |
|
40 | ||
41 | /** |
|
42 | * Default constructor. |
|
43 | * |
|
44 | * @param message the detail message (which is saved for later retrieval by |
|
45 | * the {@link #getMessage()} method). |
|
46 | */ |
|
47 | public ReadOnlyPropertyException(final PropertyValueChangeMessageBean message) |
|
48 | { |
|
49 | 0 | super(message); |
50 | 0 | } |
51 | ||
52 | // ****************************** Inner Classes ***************************** |
|
53 | ||
54 | // ********************************* Methods ******************************** |
|
55 | ||
56 | // --- init ----------------------------------------------------------------- |
|
57 | ||
58 | // --- get&set -------------------------------------------------------------- |
|
59 | ||
60 | @Override |
|
61 | public final PropertyValueChangeMessageBean getMessageBean() |
|
62 | { |
|
63 | 0 | return (PropertyValueChangeMessageBean) super.getMessageBean(); |
64 | } |
|
65 | ||
66 | // --- business ------------------------------------------------------------- |
|
67 | ||
68 | // --- object basics -------------------------------------------------------- |
|
69 | ||
70 | } |