Class FileValueHolder
java.lang.Object
de.uplanet.lucy.server.dataobjects.impl.FileValueHolder
- All Implemented Interfaces:
IFileValueHolder
,IObjectValueHolder
,IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
Holds information about a file. Depending on the value of WebOnly, not all information
is available (true -> only path available).
-
Constructor Summary
ConstructorDescriptionStandard constructor.FileValueHolder
(IVHFileDescriptor p_descriptor) Standard constructor.FileValueHolder
(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors) FileValueHolder
(Collection<? extends IVHFileDescriptor> p_descriptors) -
Method Summary
Modifier and TypeMethodDescriptionGet the canonical lexical representation of this value according to it's datatype.Deprecated.Deprecated.Intrexx 7: Method will be removed in next major version.getPath()
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getPath()
insteadde.uplanet.lucy.server.util.IVHFileDescriptors
Returns a IVHFIleDescriptor instance.getType()
The type of data this value holder holds.de.uplanet.lucy.server.util.IVHFileDescriptors
getValue()
Get the data that this value holder holds.boolean
hasValue()
Check if this value holder currently holds data or not.boolean
-
Constructor Details
-
FileValueHolder
public FileValueHolder()Standard constructor. -
FileValueHolder
Standard constructor. -
FileValueHolder
- Parameters:
p_descriptors
- A collections of file descriptors.
-
FileValueHolder
public FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors) - Parameters:
p_descriptors
- A file descriptor.
-
-
Method Details
-
getRawValue
public de.uplanet.lucy.server.util.IVHFileDescriptors getRawValue()Description copied from interface:IFileValueHolder
Returns a IVHFIleDescriptor instance. Maybe a empty list, nevernull
.- Specified by:
getRawValue
in interfaceIFileValueHolder
- Specified by:
getRawValue
in interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The raw data.
-
getType
Description copied from interface:IValueHolder
The type of data this value holder holds.- Specified by:
getType
in interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
-
getValue
public de.uplanet.lucy.server.util.IVHFileDescriptors getValue()Description copied from interface:IValueHolder
Get the data that this value holder holds.Implementations MUST ensure that multiple calls to this method will return values that equal each other.
- Specified by:
getValue
in interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The data.
-
hasValue
public boolean hasValue()Description copied from interface:IValueHolder
Check if this value holder currently holds data or not.- Specified by:
hasValue
in interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
true
if the data holder holds data, orfalse
otherwise.
-
getCanonicalLexicalRepresentation
Description copied from interface:IValueHolder
Get the canonical lexical representation of this value according to it's datatype.- Specified by:
getCanonicalLexicalRepresentation
in interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The canonical lexical representation, or
null
if such a representation does not exist (e.g. ifIValueHolder.hasValue()
returnsfalse
).
-
isSingleFile
public boolean isSingleFile()- Specified by:
isSingleFile
in interfaceIFileValueHolder
- Returns:
- Returns
true
if only one file holds the value holder otherwisefalse
.
-
getFirstFile
- Specified by:
getFirstFile
in interfaceIFileValueHolder
- Returns:
- Returns the first file descriptor.
-
getFileName
Deprecated.Intrexx 7: Method will be removed in next major version. Please usegetFirstFile().getFileName()
instead- Returns:
- Returns the filename of the document e.g. text_aaa.txt
-
getPath
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getPath()
instead- Returns:
- The path to the file e.g. internal/files/CF56A0484DA23407F958080FDD64F75C63DABC54/textaaa_0.txt
-
getContentType
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getContentType()
instead- Returns:
- The MIME content type or
null
.
-
getFirstFile().getContentType()
instead