Package com.inrupt.client.solid
Class Metadata.Builder
java.lang.Object
com.inrupt.client.solid.Metadata.Builder
- Enclosing class:
- Metadata
A Builder class for Metadata instances.
-
Method Summary
Modifier and TypeMethodDescriptionAdd an acl property.allowedMethod
(String method) Add an allowedMethod property.allowedPatchSyntax
(String syntax) Add a allowedPatchSyntax property.allowedPostSyntax
(String syntax) Add a allowedPostSyntax property.allowedPutSyntax
(String syntax) Add a allowedPutSyntax property.build()
Build the Metadata object.contentType
(String type) Add a content type property.Add a storage property.Add a type property.Add a wacAllow property.
-
Method Details
-
storage
Add a storage property.- Parameters:
uri
- the storage URI- Returns:
- this builder
-
type
Add a type property.- Parameters:
uri
- the type URI- Returns:
- this builder
-
wacAllow
Add a wacAllow property.- Parameters:
accessParam
- the Access Parameter- Returns:
- this builder
-
acl
Add an acl property.- Parameters:
acl
- the acl location- Returns:
- this builder
-
allowedMethod
Add an allowedMethod property.- Parameters:
method
- the method- Returns:
- this builder
-
allowedPatchSyntax
Add a allowedPatchSyntax property.- Parameters:
syntax
- the syntax- Returns:
- this builder
-
allowedPostSyntax
Add a allowedPostSyntax property.- Parameters:
syntax
- the syntax- Returns:
- this builder
-
allowedPutSyntax
Add a allowedPutSyntax property.- Parameters:
syntax
- the syntax- Returns:
- this builder
-
contentType
Add a content type property.- Parameters:
type
- the content type- Returns:
- this builder
-
build
Build the Metadata object.- Returns:
- the resource Metadata object
-