Skip to content

Commit

Permalink
Add createEnumeratedClass() method
Browse files Browse the repository at this point in the history
  • Loading branch information
twalmsley authored and GCHQDeveloper42 committed Nov 4, 2022
1 parent 9b542b3 commit 093bf32
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,18 @@ public static ClassOfSystemComponent createClassOfSystemComponent(final String i
return result;
}

/**
* Create a {@link EnumeratedClass} with an String.
*
* @param id ID of the EnumeratedClass.
* @return A EnumeratedClass instance.
*/
public static EnumeratedClass createEnumeratedClass(final String id) {
final EnumeratedClass result = ClassServices.createEnumeratedClass(id);
result.addValue(RDFS.RDF_TYPE, HQDM.ENUMERATED_CLASS);
return result;
}

/**
* Create a {@link KindOfActivity} with an String.
*
Expand Down

0 comments on commit 093bf32

Please # to comment.