diff --git a/sop-java/src/main/java/sop/Profile.java b/sop-java/src/main/java/sop/Profile.java new file mode 100644 index 0000000..4a9b5b9 --- /dev/null +++ b/sop-java/src/main/java/sop/Profile.java @@ -0,0 +1,34 @@ +// SPDX-FileCopyrightText: 2023 Paul Schaub +// +// SPDX-License-Identifier: Apache-2.0 + +package sop; + +/** + * Tuple class bundling a profile name and description. + * + * @see + * SOP Spec - Profile + */ +public class Profile { + + private final String name; + private final String description; + + public Profile(String name, String description) { + this.name = name; + this.description = description; + } + + public String getName() { + return name; + } + + public String getDescription() { + return description; + } + + public String toString() { + return getName() + ": " + getDescription(); + } +}