Skip to content

Package: C1Document

C1Document

nameinstructionbranchcomplexitylinemethod
C1Document()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
C1Document(String, List)
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
canEqual(Object)
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
equals(Object)
M: 55 C: 0
0%
M: 18 C: 0
0%
M: 10 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getCollections()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getName()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
hashCode()
M: 34 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
toString()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * *********************************************************************************************************************
3: *
4: * blueMarine II: Semantic Media Centre
5: * http://tidalwave.it/projects/bluemarine2
6: *
7: * Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *********************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
12: * the License. You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
17: * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations under the License.
19: *
20: * *********************************************************************************************************************
21: *
22: * git clone https://bitbucket.org/tidalwave/bluemarine2-src
23: * git clone https://github.com/tidalwave-it/bluemarine2-src
24: *
25: * *********************************************************************************************************************
26: */
27: package it.tidalwave.bluemarine2.captureone.impl;
28:
29: import javax.annotation.Nonnull;
30: import java.util.ArrayList;
31: import java.util.List;
32: import jakarta.xml.bind.annotation.XmlAccessType;
33: import jakarta.xml.bind.annotation.XmlAccessorType;
34: import jakarta.xml.bind.annotation.XmlElement;
35: import jakarta.xml.bind.annotation.XmlElementWrapper;
36: import jakarta.xml.bind.annotation.XmlRootElement;
37: import lombok.EqualsAndHashCode;
38: import lombok.Getter;
39: import lombok.RequiredArgsConstructor;
40: import lombok.ToString;
41:
42: /***********************************************************************************************************************
43: *
44: * A catalog in Capture One. It has got a name and contains collections.
45: *
46: * @author Fabrizio Giudici
47: *
48: **********************************************************************************************************************/
49: @XmlRootElement(name="document")
50: @XmlAccessorType(XmlAccessType.NONE)
51:•@RequiredArgsConstructor @Getter @ToString @EqualsAndHashCode
52: public class C1Document
53: {
54: @XmlElement(name = "name")
55: @Nonnull
56: private final String name;
57:
58: @XmlElement(name = "collection")
59: @XmlElementWrapper(name = "collections")
60: private final List<C1Collection> collections;
61:
62: @SuppressWarnings("unused")
63: private C1Document()
64: {
65: this("", new ArrayList<>());
66: }
67: }