public class Subject extends Object implements ICleanable
| Constructor and Description |
|---|
Subject(@NonNull String value) |
Subject(String value,
String lang)
Constructor that allows to set the language.
|
Subject(@NonNull String value,
String lang,
String scheme,
String schemeURI,
String valueURI) |
| 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 |
getLang()
Retrieves the IETF language tag of the subject text.
|
String |
getScheme()
Retrieves the free text name of the subject scheme or classification code or authority if one is used.
|
String |
getSchemeURI()
Retrieves the URI of the subject identifier scheme.
|
@NonNull String |
getValue()
Retrieves the term that describes the resource.
|
String |
getValueURI()
Retrieves the URI of the subject term.
|
int |
hashCode() |
void |
setLang(String lang)
Sets the IETF language tag of the subject text.
|
void |
setScheme(String scheme)
Sets the free text name of the subject scheme or classification code or authority if one is used.
|
void |
setSchemeURI(String schemeURI)
Sets the URI of the subject identifier scheme.
|
void |
setValue(@NonNull String value)
Sets the term that describes the resource.
|
void |
setValueURI(String valueURI)
Sets the URI of the subject term.
|
String |
toString() |
public Subject(String value, String lang)
value - a term that describes the resourcelang - a IETF language tag of the subject textpublic Subject(@NonNull
@NonNull String value)
public boolean clean()
ICleanableclean in interface ICleanable@NonNull public @NonNull String getValue()
public String getLang()
public String getScheme()
public String getSchemeURI()
public String getValueURI()
public void setValue(@NonNull
@NonNull String value)
value - a term that describes the resourcepublic void setLang(String lang)
lang - the IETF language tag of the subject textpublic void setScheme(String scheme)
scheme - the free text name of the subject schemepublic void setSchemeURI(String schemeURI)
schemeURI - the URI of the subject identifier schemepublic void setValueURI(String valueURI)
valueURI - the URI of the subject termprotected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.