Skip to content

Package: MessageTEI

MessageTEI

nameinstructionbranchcomplexitylinemethod
MessageTEI()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getVariableInfo(TagData)
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 2001, 2023 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package demo;
12:
13: import jakarta.servlet.jsp.tagext.TagData;
14: import jakarta.servlet.jsp.tagext.TagExtraInfo;
15: import jakarta.servlet.jsp.tagext.VariableInfo;
16:
17: /**
18: * Extra information class to support the scripting variable created by the
19: * MessagesTag class. The variable exists outside of the tag.
20: */
21: public class MessageTEI extends TagExtraInfo {
22:
23: public MessageTEI() {
24: super();
25: }
26:
27: public VariableInfo[] getVariableInfo(TagData data) {
28: VariableInfo info = new VariableInfo(data.getId(), "MessageInfo",
29: true, VariableInfo.AT_END);
30: VariableInfo[] varInfo = {info};
31: return varInfo;
32: }
33: }
34: