public final class URIDescriptionBasic extends Object implements URIDescription
Constructor and Description |
---|
URIDescriptionBasic(org.openrdf.model.URI v)
Create a description for the given URI
|
URIDescriptionBasic(org.openrdf.model.URI v,
String d)
Create a description for the given URI with the given description as
preferred description.
|
Modifier and Type | Method and Description |
---|---|
void |
addDescription(String d)
Add a description
|
void |
addDescriptions(Collection<String> d)
Add a collection of descriptions
|
void |
addDescriptions(String[] d)
Add an array of descriptions
|
org.openrdf.model.URI |
getAssociatedURI() |
Set<String> |
getDescriptions()
Access to the descriptions associated to the object
|
String |
getPreferredDescription()
Access to the preferred description of the resource.
|
void |
removeDescription(String d)
Remove a description.
|
void |
removeDescriptions(Collection<String> d)
Remove a collection of descriptions.
|
void |
setPreferredDescription(String d)
Set the preferred description of the resource.
|
public URIDescriptionBasic(org.openrdf.model.URI v)
v
- the URI of the resourcepublic URIDescriptionBasic(org.openrdf.model.URI v, String d)
v
- the URI of the resourced
- the preferred descriptionpublic void addDescription(String d)
URIDescription
addDescription
in interface URIDescription
d
- the descriptionpublic Set<String> getDescriptions()
URIDescription
getDescriptions
in interface URIDescription
public String getPreferredDescription()
URIDescription
getPreferredDescription
in interface URIDescription
public void setPreferredDescription(String d)
URIDescription
setPreferredDescription
in interface URIDescription
d
- the preferred description.public void addDescriptions(Collection<String> d)
URIDescription
addDescriptions
in interface URIDescription
d
- the collection of descriptionspublic void addDescriptions(String[] d)
URIDescription
addDescriptions
in interface URIDescription
d
- an array of descriptionspublic org.openrdf.model.URI getAssociatedURI()
getAssociatedURI
in interface URIDescription
public void removeDescription(String d)
URIDescription
removeDescription
in interface URIDescription
d
- the descriptionpublic void removeDescriptions(Collection<String> d)
URIDescription
removeDescriptions
in interface URIDescription
d
- the collection of descriptionsCopyright © 2014. All rights reserved.