Skip to content

Commit

Permalink
add identifer attribute to licence
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-confino committed May 15, 2024
1 parent 632268f commit 9e6909b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
**/
String name();

/**
* The license identifier used for the API.
*
* @return the identifier of the license
**/
String identifier() default "";

/**
* A URL to the license used for the API. MUST be in the format of a URL.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@ default License name(String name) {
return this;
}

/**
* Returns the license identifier for this License instance that is used for the API.
*
* @return the license identifier used for the API
**/
String getIdentifier();

/**
* Sets the license identifier for this License instance that is used for the API.
*
* @param identifier
* the license identifier used for the API
*/
void setIdentifier(String identifier);

/**
* Sets this License instance's identifier used for the API and returns this instance of License.
*
* @param identifier
* the license identifier used for the API
* @return this License instance
*/
default License identifier(String identifier) {
setIdentifier(identifier);
return this;
}

/**
* Returns the URL for this License instance that is used for the API.
*
Expand Down

0 comments on commit 9e6909b

Please sign in to comment.