public interface IResourceBuilder
| Modifier and Type | Method and Description |
|---|---|
Document |
createDocumentReference() |
Document |
createEmbeddedDocument()
Creates the embedded document.
|
Resource |
createEmbeddedResource()
Creates the embedded resource.
|
Resource |
createResourceReference() |
IResourceBuilder |
withAuthData(org.modelio.vbasic.auth.IAuthData auth)
use the given authentication data to at least probe the content type.
|
IResourceBuilder |
withFile(java.nio.file.Path file) |
IResourceBuilder |
withMimeType(java.lang.String mimeType) |
IResourceBuilder |
withName(java.lang.String name) |
IResourceBuilder |
withOwner(ModelElement owner) |
IResourceBuilder |
withRole(ResourceType type) |
IResourceBuilder |
withRole(java.lang.String moduleName,
java.lang.String ownerName,
java.lang.String typeName)
Set the resource role.
|
IResourceBuilder |
withURI(java.net.URI uri) |
Document createDocumentReference()
Document createEmbeddedDocument() throws java.io.IOException
java.io.IOException - if embedding fails with an I/O error.Resource createEmbeddedResource() throws java.io.IOException
java.io.IOException - if embedding fails with an I/O error.Resource createResourceReference()
IResourceBuilder withFile(java.nio.file.Path file)
file - the represented file pathIResourceBuilder withMimeType(java.lang.String mimeType)
mimeType - the resource MIME type.IResourceBuilder withName(java.lang.String name)
name - The resource title.IResourceBuilder withOwner(ModelElement owner)
IResourceBuilder withRole(java.lang.String moduleName, java.lang.String ownerName, java.lang.String typeName) throws ExtensionNotFoundException, java.lang.IllegalStateException
moduleName - the module name or regex patternownerName - the name of the Stereotype or MetaclassReference owning the type. Cannot be null.typeName - the role nameExtensionNotFoundException - if the role was not found.java.lang.IllegalStateException - if withOwner(ModelElement) was not called before.IResourceBuilder withRole(ResourceType type)
type - the resource role.IResourceBuilder withURI(java.net.URI uri)
uri - the represented resource URI.IResourceBuilder withAuthData(org.modelio.vbasic.auth.IAuthData auth)
The password will never be stored in any case. The current implementation does not store the authentication data.
auth - authentication data.