public class IsniBuilder extends Object
Constructor and Description |
---|
IsniBuilder(BasicIsniProvider isniProvider) |
Modifier and Type | Method and Description |
---|---|
IsniBuilder |
asNumber()
Formats generated ISNI as a plain value and not as an url.
|
IsniBuilder |
asUrl()
Adds the
https://isni.org/isni/ url to the generated number. |
String |
build()
Generates a random ISNI
|
IsniBuilder |
withoutSeparator()
Removes the ISNI separator.
|
IsniBuilder |
withSeparator()
Sets the default ISNI separator for formatting.
|
public IsniBuilder(BasicIsniProvider isniProvider)
public IsniBuilder withSeparator()
This method can't be combined with the asUrl()
method.
IvalidIsniParameterException
- when used with the asUrl()
methodpublic IsniBuilder withoutSeparator()
This is the default behavior for this builder.
public IsniBuilder asUrl()
https://isni.org/isni/
url to the generated number.
This method can't be combined with the withSeparator()
method.
IvalidIsniParameterException
- when used with the withSeparator()
methodpublic IsniBuilder asNumber()
This is the default behavior for this builder.
public String build()
Copyright © 2022. All rights reserved.