Skip to content

Package: ListAttachmentsTEI

ListAttachmentsTEI

nameinstructionbranchcomplexitylinemethod
ListAttachmentsTEI()
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, 2021 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.*;
14:
15: /**
16: * Extra information class to support the scripting variable created by the
17: * ListAttachmentsTag class. The scope of the variable is limited to the body
18: * of the tag.
19: */
20: public class ListAttachmentsTEI extends TagExtraInfo {
21:
22: public ListAttachmentsTEI() {
23:         super();
24: }
25:
26: public VariableInfo[] getVariableInfo(TagData data) {
27:         VariableInfo info = new VariableInfo(data.getId(),"AttachmentInfo",
28:          true, VariableInfo.NESTED);
29:         VariableInfo[] varInfo = { info };
30:         return varInfo;
31: }
32: }
33: