AAI-common sonar fixes
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / domain / translog / TransactionLogEntries.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 //
21 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
22 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
23 // Any modifications to this file will be lost upon recompilation of the source schema.
24 // Generated on: 2015.03.20 at 09:46:47 AM CDT
25 //
26
27 package org.onap.aai.domain.translog;
28
29 import javax.xml.bind.annotation.XmlAccessType;
30 import javax.xml.bind.annotation.XmlAccessorType;
31 import javax.xml.bind.annotation.XmlRootElement;
32 import javax.xml.bind.annotation.XmlType;
33 import java.util.ArrayList;
34 import java.util.List;
35
36 /**
37  * <p>
38  * Java class for anonymous complex type.
39  *
40  * <p>
41  * The following schema fragment specifies the expected content contained within this class.
42  *
43  * <pre>
44  * &lt;complexType>
45  *   &lt;complexContent>
46  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
47  *       &lt;sequence>
48  *         &lt;element name="update" minOccurs="0">
49  *           &lt;complexType>
50  *             &lt;complexContent>
51  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
52  *                 &lt;sequence>
53  *                   &lt;element name="update-node-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
54  *                   &lt;element name="update-node-key" maxOccurs="unbounded" minOccurs="0">
55  *                     &lt;complexType>
56  *                       &lt;complexContent>
57  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
58  *                           &lt;sequence>
59  *                             &lt;element name="key-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
60  *                             &lt;element name="key-value" type="{http://www.w3.org/2001/XMLSchema}string"/>
61  *                             &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
62  *                           &lt;/sequence>
63  *                         &lt;/restriction>
64  *                       &lt;/complexContent>
65  *                     &lt;/complexType>
66  *                   &lt;/element>
67  *                   &lt;element name="action" maxOccurs="unbounded" minOccurs="0">
68  *                     &lt;complexType>
69  *                       &lt;complexContent>
70  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
71  *                           &lt;sequence>
72  *                             &lt;element name="action-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
73  *                             &lt;element name="action-data" maxOccurs="unbounded" minOccurs="0">
74  *                               &lt;complexType>
75  *                                 &lt;complexContent>
76  *                                   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
77  *                                     &lt;sequence>
78  *                                       &lt;element name="property-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
79  *                                       &lt;element name="property-value" type="{http://www.w3.org/2001/XMLSchema}string"/>
80  *                                       &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
81  *                                     &lt;/sequence>
82  *                                   &lt;/restriction>
83  *                                 &lt;/complexContent>
84  *                               &lt;/complexType>
85  *                             &lt;/element>
86  *                             &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
87  *                           &lt;/sequence>
88  *                         &lt;/restriction>
89  *                       &lt;/complexContent>
90  *                     &lt;/complexType>
91  *                   &lt;/element>
92  *                   &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
93  *                 &lt;/sequence>
94  *               &lt;/restriction>
95  *             &lt;/complexContent>
96  *           &lt;/complexType>
97  *         &lt;/element>
98  *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
99  *       &lt;/sequence>
100  *     &lt;/restriction>
101  *   &lt;/complexContent>
102  * &lt;/complexType>
103  * </pre>
104  *
105  *
106  */
107 @XmlAccessorType(XmlAccessType.FIELD)
108 @XmlType(name = "", propOrder = {"logEntries"})
109 @XmlRootElement(name = "transaction-log-entries", namespace = "http://org.onap.aai.inventory")
110 public class TransactionLogEntries {
111
112     protected List<TransactionLogEntry> logEntries;
113
114     /**
115      * Gets the transaction log entries.
116      *
117      * @return the transaction log entries
118      */
119     public List<TransactionLogEntry> getTransactionLogEntries() {
120         if (logEntries == null) {
121             logEntries = new ArrayList<>();
122         }
123         return this.logEntries;
124     }
125
126 }