Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit 88ff06a

Browse files
committed
software type in
Signed-off-by: Neal Ensor <[email protected]>
1 parent 7dac9f7 commit 88ff06a

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

src/main/java/gov/osti/entity/DOECodeMetadata.java

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,33 @@ public String label() {
127127
}
128128
}
129129

130+
/**
131+
* Define the valid SOFTWARE TYPES.
132+
*/
133+
public enum Type {
134+
S ("Scientific"),
135+
B ("Business");
136+
137+
private final String label;
138+
139+
private Type(String label) {
140+
this.label = label;
141+
}
142+
143+
public String label() {
144+
return this.label;
145+
}
146+
}
147+
130148
// Attributes
131149
private Long codeId;
132150
private String siteOwnershipCode = null;
133151
private Boolean openSource = null;
134152
private String repositoryLink = null;
135153
private String landingPage = null;
136154
private Accessibility accessibility = null;
137-
155+
// the SOFTWARE TYPE
156+
private Type softwareType;
138157
// set of Access Limitations (Strings)
139158
@JacksonXmlElementWrapper (localName = "accessLimitations")
140159
@JacksonXmlProperty (localName = "accessLimitation")
@@ -691,4 +710,25 @@ void updatedAt() {
691710
public boolean hasSetReleaseDate() {
692711
return setReleaseDate;
693712
}
713+
714+
/**
715+
* Obtain the SOFTWARE TYPE: one of Type.S (scientific) or Type.B (Business)
716+
*
717+
* @return the type the SOFTWARE TYPE
718+
*/
719+
@Basic (optional = false)
720+
@Column (name = "SOFTWARE_TYPE", length = 1)
721+
@Enumerated (EnumType.STRING)
722+
public Type getSoftwareType() {
723+
return softwareType;
724+
}
725+
726+
/**
727+
* Set the SOFTWARE TYPE value.
728+
*
729+
* @param type the type to set
730+
*/
731+
public void setSoftwareType(Type type) {
732+
this.softwareType = type;
733+
}
694734
}

0 commit comments

Comments
 (0)