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 withuriandsaiSession -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theReadableApplicationProfileusing 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 withuriandsaiSession- Parameters:
uri- URI of theReadableApplicationProfileto buildsaiSession-SaiSessionto assign
-
-
Method Details
-
getThis
Ensures that don't get an unchecked cast warning when returning from setters- Specified by:
getThisin 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:
setDatasetin classReadableResource.Builder<ReadableSocialAgentProfile.Builder>- Parameters:
dataset- Jena model to populate the Builder attributes with- Returns:
ReadableSocialAgentProfile.Builder- Throws:
SaiException
-
build
Build theReadableApplicationProfileusing attributes from the Builder.- Returns:
ReadableApplicationProfile- Throws:
SaiException
-