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)
URIDescriptionaddDescription in interface URIDescriptiond - the descriptionpublic Set<String> getDescriptions()
URIDescriptiongetDescriptions in interface URIDescriptionpublic String getPreferredDescription()
URIDescriptiongetPreferredDescription in interface URIDescriptionpublic void setPreferredDescription(String d)
URIDescriptionsetPreferredDescription in interface URIDescriptiond - the preferred description.public void addDescriptions(Collection<String> d)
URIDescriptionaddDescriptions in interface URIDescriptiond - the collection of descriptionspublic void addDescriptions(String[] d)
URIDescriptionaddDescriptions in interface URIDescriptiond - an array of descriptionspublic org.openrdf.model.URI getAssociatedURI()
getAssociatedURI in interface URIDescriptionpublic void removeDescription(String d)
URIDescriptionremoveDescription in interface URIDescriptiond - the descriptionpublic void removeDescriptions(Collection<String> d)
URIDescriptionremoveDescriptions in interface URIDescriptiond - the collection of descriptionsCopyright © 2014. All rights reserved.