View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements. See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache license, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License. You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the license for the specific language governing permissions and
15   * limitations under the license.
16   */
17  package org.apache.logging.log4j.catalog.api;
18  
19  import java.io.Serializable;
20  import java.util.List;
21  
22  /**
23   * Container for the data in the catalog.
24   */
25  public class CatalogData implements Serializable {
26  
27      private static final long serialVersionUID = -6772374346223539136L;
28      private List<Product> products;
29      private List<Category> categories;
30      private List<Event> events;
31      private List<Attribute> attributes;
32  
33      /**
34       * Returns the Products associated with the Catalog.
35       * @return the List of Products.
36       */
37      public List<Product> getProducts() {
38          return products;
39      }
40  
41      /**
42       * Sets the Products represented in the Catalog.
43       *
44       * @param products The List of Products.
45       */
46      public void setProducts(List<Product> products) {
47          this.products = products;
48      }
49  
50      /**
51       * Returns the List of Categories.
52       * @return the List of CategoryDto objects or null.
53       */
54      public List<Category> getCategories() {
55          return categories;
56      }
57  
58      /**
59       * Sets List of CategoryDto objects.
60       * @param categories the List of Categories or null.
61       */
62      public void setCategories(List<Category> categories) {
63          this.categories = categories;
64      }
65  
66      /**
67       * Returns the List of EventDto objects.
68       * @return the List of Events.
69       */
70      public List<Event> getEvents() {
71          return events;
72      }
73  
74      /**
75       * Sets the List of EventDto objects.
76       * @param events the List of Events or null.
77       */
78      public void setEvents(List<Event> events) {
79          this.events = events;
80      }
81  
82      /**
83       * Returns the List of AttributeDto objects.
84       *
85       * @return the List of AttributeDto objects or null.
86       */
87      public List<Attribute> getAttributes() {
88          return attributes;
89      }
90  
91      /**
92       * Sets the List of AttributeDto objects.
93       *
94       * @param attributes the List of Attributes.
95       */
96      public void setAttributes(List<Attribute> attributes) {
97          this.attributes = attributes;
98      }
99  
100     /**
101      * The supported EventLogger types.
102      * @return the List of EventLogger type names.
103      */
104     /* public List<String> getEventLoggerTypes() {
105         return eventLoggerTypes;
106     } */
107 
108     /**
109      * Set the List of EventLogger types.
110      * @param eventTypes the EventLogger types.
111      */
112     /* public void setEventLoggerTypes(List<String> eventTypes) {
113         this.eventLoggerTypes = eventTypes;
114     } */
115 }