public class DOI extends Object implements Identifier
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOLVER |
static String |
SCHEME |
| Constructor and Description |
|---|
DOI() |
| Modifier and Type | Method and Description |
|---|---|
static String |
DOIFromExternalFormat(String identifier) |
static String |
DOIToExternalForm(String identifier)
This method helps to convert a DOI into a URL.
|
static String |
formatIdentifier(String identifier)
Recognize format of DOI and return it with leading doi-Scheme.
|
public static final String SCHEME
public static final String RESOLVER
public static String DOIToExternalForm(String identifier) throws IdentifierException
identifier - A DOI that should be returned in external form.IllegalArgumentException - If identifier is null or an empty String.IdentifierException - If identifier could not be recognized as valid DOI.public static String DOIFromExternalFormat(String identifier) throws DOIIdentifierException
DOIIdentifierExceptionpublic static String formatIdentifier(String identifier) throws DOIIdentifierException
identifier - Identifier to format, following format are accepted:
f.e. 10.123/456, doi:10.123/456, http://dx.doi.org/10.123/456.IllegalArgumentException - If identifier is empty or null.DOIIdentifierException - If DOI could not be recognized.Copyright © 2013 DuraSpace. All Rights Reserved.