-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing comments to PackageDTO
- Loading branch information
Showing
1 changed file
with
23 additions
and
10 deletions.
There are no files selected for viewing
33 changes: 23 additions & 10 deletions
33
com.osgifx.console.api/src/main/java/com/osgifx/console/data/provider/PackageDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
/******************************************************************************* | ||
* Copyright 2021-2024 Amit Kumar Mondal | ||
* COPYRIGHT 2021-2024 AMIT KUMAR MONDAL | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
******************************************************************************/ | ||
package com.osgifx.console.data.provider; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.osgi.dto.DTO; | ||
|
||
import com.osgifx.console.agent.dto.XBundleDTO; | ||
|
||
/** | ||
* A Data Transfer Object (DTO) representing package information. | ||
* It includes details about the package name, version, and whether | ||
* it is duplicated when exported. Additionally, it holds lists of | ||
* exporters and importers associated with the package. | ||
*/ | ||
public class PackageDTO extends DTO { | ||
|
||
public String name; | ||
public String version; | ||
public boolean isDuplicateExport; | ||
/** The name of the package. */ | ||
public String name; | ||
|
||
/** The version of the package. */ | ||
public String version; | ||
|
||
/** Indicates whether the package is duplicated when exported. */ | ||
public boolean isDuplicateExport; | ||
|
||
/** List of bundles exporting this package. */ | ||
public List<XBundleDTO> exporters = new ArrayList<>(); | ||
|
||
/** List of bundles importing this package. */ | ||
public List<XBundleDTO> importers = new ArrayList<>(); | ||
|
||
} | ||
} |