| | |
| | | } |
| | | |
| | | for (String st : checkBox.values()) { |
| | | if (!st.contains(",")) { |
| | | throw new AnotationException("复选框的内容格式错误,键值对要用逗号分隔"); |
| | | if (!st.contains(":")) { |
| | | throw new AnotationException("复选框的内容格式错误,键值对要用:分隔"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | for (String st : radioGroup.values()) { |
| | | if (!st.contains(",")) { |
| | | throw new AnotationException("单选框的内容格式错误,键值对要用逗号分隔"); |
| | | if (!st.contains(":")) { |
| | | throw new AnotationException("单选框的内容格式错误,键值对要用:分隔"); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } else { |
| | | for (String st : select.values()) { |
| | | if (!st.contains(",")) { |
| | | throw new AnotationException("下拉框的内容格式错误,键值对要用逗号分隔"); |
| | | if (!st.contains(":")) { |
| | | throw new AnotationException("下拉框的内容格式错误,键值对要用:分隔"); |
| | | } |
| | | } |
| | | } |