Class ReadableSocialAgentProfile.Builder
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource.Builder<ReadableSocialAgentProfile.Builder>
com.janeirodigital.sai.core.agents.ReadableSocialAgentProfile.Builder
- Enclosing class:
- ReadableSocialAgentProfile
public static class ReadableSocialAgentProfile.Builder
extends ReadableResource.Builder<ReadableSocialAgentProfile.Builder>
Builder for
ReadableApplicationProfile
instances.-
Field Summary
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource.Builder
contentType, dataset, exists, jsonLdContext, resource, saiSession, unprotected, uri
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(URI uri, SaiSession saiSession) Initialize builder withuri
andsaiSession
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theReadableApplicationProfile
using attributes from the Builder.getThis()
Ensures that don't get an unchecked cast warning when returning from setterssetDataset
(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theReadableSocialAgentProfile.Builder
.Methods inherited from class com.janeirodigital.sai.core.resources.ReadableResource.Builder
setContentType, setDataset, setJsonLdContext, setUnprotected
-
Constructor Details
-
Builder
Initialize builder withuri
andsaiSession
- Parameters:
uri
- URI of theReadableApplicationProfile
to buildsaiSession
-SaiSession
to assign
-
-
Method Details
-
getThis
Ensures that don't get an unchecked cast warning when returning from setters- Specified by:
getThis
in classReadableResource.Builder<ReadableSocialAgentProfile.Builder>
- Returns:
ReadableSocialAgentProfile.Builder
-
setDataset
public ReadableSocialAgentProfile.Builder setDataset(org.apache.jena.rdf.model.Model dataset) throws SaiException Set the Jena model and use it to populate attributes of theReadableSocialAgentProfile.Builder
. Assumption is made that the corresponding resource exists.- Overrides:
setDataset
in classReadableResource.Builder<ReadableSocialAgentProfile.Builder>
- Parameters:
dataset
- Jena model to populate the Builder attributes with- Returns:
ReadableSocialAgentProfile.Builder
- Throws:
SaiException
-
build
Build theReadableApplicationProfile
using attributes from the Builder.- Returns:
ReadableApplicationProfile
- Throws:
SaiException
-