public class Rights extends Object implements ICleanable
| Constructor and Description |
|---|
Rights(@NonNull String value) |
Rights(String value,
String lang)
Constructor that allows to set the language.
|
Rights(@NonNull String value,
String lang,
String uri,
String identifier,
String identifierScheme,
String schemeURI) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
clean()
Cleans the object, making it compatible with the ElasticSearch index.
|
boolean |
equals(Object o) |
String |
getIdentifier()
Retrieves the short, standardized version of the license name.
|
String |
getIdentifierScheme()
Retrieves the name of the scheme.
|
String |
getLang()
Retrieves the IETF language tag of the text.
|
String |
getSchemeURI()
Retrieves the URI of the rightsIdentifierScheme.
|
String |
getUri()
Retrieves the URI of the license.
|
@NonNull String |
getValue()
Retrieves the free text that describes the rights.
|
int |
hashCode() |
void |
setIdentifier(String identifier)
Sets the short, standardized version of the license name.
|
void |
setIdentifierScheme(String identifierScheme)
Sets the name of the scheme.
|
void |
setLang(String lang)
Sets the IETF language tag of the text.
|
void |
setSchemeURI(String schemeURI)
Sets the URI of the rightsIdentifierScheme.
|
void |
setUri(String uri)
Sets the URI of the license.
|
void |
setValue(@NonNull String value)
Sets the free text that describes the rights.
|
String |
toString() |
public Rights(String value, String lang)
value - free text that describes the rightslang - a IETF language tag of the textpublic Rights(@NonNull
@NonNull String value)
public boolean clean()
ICleanableclean in interface ICleanable@NonNull public @NonNull String getValue()
public String getLang()
public String getUri()
public String getIdentifier()
public String getIdentifierScheme()
public String getSchemeURI()
public void setValue(@NonNull
@NonNull String value)
value - free text that describes the rightspublic void setLang(String lang)
lang - the IETF language tag of the textpublic void setUri(String uri)
uri - the URI of the license.public void setIdentifier(String identifier)
identifier - short, standardized version of the license namepublic void setIdentifierScheme(String identifierScheme)
identifierScheme - the name of the schemepublic void setSchemeURI(String schemeURI)
schemeURI - the URI of the rightsIdentifierSchemeprotected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.