T
- the type of resources to comparepublic static class ResourceDiff.ResourceDiffBuilder<T extends org.eclipse.lyo.oslc4j.core.model.IExtendedResource> extends Object
ResourceDiff
.ResourceDiff.of(IExtendedResource, IExtendedResource)
Modifier and Type | Method and Description |
---|---|
ResourceDiff<T> |
build()
Creates a ResourceDiff with the parameters configured in this builder instance.
|
ResourceDiff.ResourceDiffBuilder<T> |
oslcLinks(FriendProvider friendProvider)
Validates that all OSLC links found while processing the diff conform to the following:
The link type source range is valid for the current resource type.
|
ResourceDiff.ResourceDiffBuilder<T> |
oslcProperties(OslcProperties properties)
Validates that a property is contained in the given
OslcProperties . |
ResourceDiff.ResourceDiffBuilder<T> |
resourceShape(org.eclipse.lyo.oslc4j.core.model.ResourceShape shape)
Validates that a property is declared in the given resource shape and that it is not read-only.
|
ResourceDiff.ResourceDiffBuilder<T> |
validators(ResourceDiff.PropertyValidator... validators)
Applies custom validator(s) on resource properties before they are processed in the resource diff.
|
public ResourceDiff.ResourceDiffBuilder<T> oslcProperties(OslcProperties properties)
OslcProperties
. If it isn't, the property is ignored while processing the
resource diff.properties
- the accepted OSLC propertiespublic ResourceDiff.ResourceDiffBuilder<T> resourceShape(org.eclipse.lyo.oslc4j.core.model.ResourceShape shape)
shape
- the resource shapepublic ResourceDiff.ResourceDiffBuilder<T> oslcLinks(FriendProvider friendProvider)
ProcessScope
.
friendProvider
- the friend providerpublic ResourceDiff.ResourceDiffBuilder<T> validators(ResourceDiff.PropertyValidator... validators)
validators
- the validators to applypublic ResourceDiff<T> build()