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