Klasse DUUIDocumentProvider
java.lang.Object
org.texttechnologylab.duui.analysis.document.DUUIDocumentProvider
This class is a utility to have easier access to input and output settings of an
 
IDUUIProcessHandler. Providers include Dropbox, Minio and Text but is
 designed to support any future cloud or database providers.- Autor:
- Cedric Borkowski
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungDUUIDocumentProvider(String provider, String providerId, String path, String content, String fileExtension) Constructs a DUUIDocumentProvider with the specified parameters.DUUIDocumentProvider(org.bson.Document document) Constructs a DUUIDocumentProvider from a BSON Document.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleanChecks if this DUUIDocumentProvider is equal to another object.Returns the content to be analyzed if the provider is plain text.Returns the file extension filter to only select matching file extensions.getPath()Returns the path from where to read data if the provider is notProvider.Returns the name of the data provider.Returns the ID of the data provider connection.inthashCode()Returns the hash code value for this DUUIDocumentProvider.booleanChecks if this DUUIDocumentProvider has no output.booleanChecks if this DUUIDocumentProvider is a cloud provider.booleanChecks if this DUUIDocumentProvider is a database provider.booleanisText()Checks if this DUUIDocumentProvider is a text provider.org.bson.DocumentConverts this DUUIDocumentProvider to a BSON Document.
- 
Konstruktordetails- 
DUUIDocumentProviderpublic DUUIDocumentProvider(org.bson.Document document) Constructs a DUUIDocumentProvider from a BSON Document.- Parameter:
- document- the BSON Document containing the provider information
 
- 
DUUIDocumentProviderpublic DUUIDocumentProvider(String provider, String providerId, String path, String content, String fileExtension) Constructs a DUUIDocumentProvider with the specified parameters.- Parameter:
- provider- the name of the data provider
- providerId- the ID of the data provider connection
- path- the path from where to read data
- content- the content to be analyzed if the provider is plain text
- fileExtension- the file extension filter
 
 
- 
- 
Methodendetails- 
getProviderReturns the name of the data provider.- Gibt zurück:
- the name of the data provider
 
- 
getPathReturns the path from where to read data if the provider is notProvider.- Gibt zurück:
- the path from where to read data
 
- 
getContentReturns the content to be analyzed if the provider is plain text.- Gibt zurück:
- the content to be analyzed
 
- 
getFileExtensionReturns the file extension filter to only select matching file extensions.- Gibt zurück:
- the file extension filter
 
- 
toDocumentpublic org.bson.Document toDocument()Converts this DUUIDocumentProvider to a BSON Document.- Gibt zurück:
- a BSON Document representing this DUUIDocumentProvider
 
- 
equalsChecks if this DUUIDocumentProvider is equal to another object.
- 
hashCodepublic int hashCode()Returns the hash code value for this DUUIDocumentProvider.
- 
hasNoOutputpublic boolean hasNoOutput()Checks if this DUUIDocumentProvider has no output.- Gibt zurück:
- true if this DUUIDocumentProvider has no output, false otherwise
 
- 
isTextpublic boolean isText()Checks if this DUUIDocumentProvider is a text provider.- Gibt zurück:
- true if this DUUIDocumentProvider is a text provider, false otherwise
 
- 
isCloudProviderpublic boolean isCloudProvider()Checks if this DUUIDocumentProvider is a cloud provider.- Gibt zurück:
- true if this DUUIDocumentProvider is a cloud provider, false otherwise
 
- 
isDatabaseProviderpublic boolean isDatabaseProvider()Checks if this DUUIDocumentProvider is a database provider.- Gibt zurück:
- true if this DUUIDocumentProvider is a database provider, false otherwise
 
- 
getProviderIdReturns the ID of the data provider connection.- Gibt zurück:
- the ID of the data provider connection
 
 
-