Package org.trellisldp.api
Class Metadata.Builder
- java.lang.Object
-
- org.trellisldp.api.Metadata.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata.Builder
binary(BinaryMetadata binary)
Set the binary metadata.Metadata
build()
Build the Metadata object, transitioning this builder to the built state.Metadata.Builder
container(IRI container)
Set the container value.Metadata.Builder
insertedContentRelation(IRI insertedContentRelation)
Set the inserted content relation value.Metadata.Builder
interactionModel(IRI ixnModel)
Set the LDP interaction model.Metadata.Builder
memberOfRelation(IRI memberOfRelation)
Set the member of relation value.Metadata.Builder
memberRelation(IRI memberRelation)
Set the member relation value.Metadata.Builder
membershipResource(IRI membershipResource)
Set the membership resource value.Metadata.Builder
metadataGraphNames(Set<IRI> graphNames)
Set any metadata graph names.Metadata.Builder
revision(String revision)
Set a revision value for the resource.
-
-
-
Method Detail
-
interactionModel
public Metadata.Builder interactionModel(IRI ixnModel)
Set the LDP interaction model.- Parameters:
ixnModel
- the interaction model- Returns:
- this builder
-
container
public Metadata.Builder container(IRI container)
Set the container value.- Parameters:
container
- the container identifier- Returns:
- this builder
-
memberRelation
public Metadata.Builder memberRelation(IRI memberRelation)
Set the member relation value.- Parameters:
memberRelation
- the member relation predicate- Returns:
- this builder
-
membershipResource
public Metadata.Builder membershipResource(IRI membershipResource)
Set the membership resource value.- Parameters:
membershipResource
- the member resource identifier- Returns:
- this builder
-
memberOfRelation
public Metadata.Builder memberOfRelation(IRI memberOfRelation)
Set the member of relation value.- Parameters:
memberOfRelation
- the member of relation predicate- Returns:
- this builder
-
insertedContentRelation
public Metadata.Builder insertedContentRelation(IRI insertedContentRelation)
Set the inserted content relation value.- Parameters:
insertedContentRelation
- the inserted content relation predicate- Returns:
- this builder
-
binary
public Metadata.Builder binary(BinaryMetadata binary)
Set the binary metadata.- Parameters:
binary
- the binary metadata- Returns:
- this builder
-
metadataGraphNames
public Metadata.Builder metadataGraphNames(Set<IRI> graphNames)
Set any metadata graph names.- Parameters:
graphNames
- the metadata graph names- Returns:
- this builder
-
revision
public Metadata.Builder revision(String revision)
Set a revision value for the resource.- Parameters:
revision
- the revision value- Returns:
- this builder
-
build
public Metadata build()
Build the Metadata object, transitioning this builder to the built state.- Returns:
- the built Metadata
-
-