Class FileValueHolder
- java.lang.Object
-
- de.uplanet.lucy.server.dataobjects.impl.FileValueHolder
-
- All Implemented Interfaces:
IFileValueHolder
,IObjectValueHolder
,IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
public final class FileValueHolder extends Object implements IFileValueHolder
Holds information about a file. Depending on the value of WebOnly, not all information is available (true -> only path available).
-
-
Constructor Summary
Constructors Constructor Description FileValueHolder()
Standard constructor.FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptor p_descriptor)
Standard constructor.FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors)
FileValueHolder(Collection<? extends de.uplanet.lucy.server.util.IVHFileDescriptor> p_descriptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getCanonicalLexicalRepresentation()
Get the canonical lexical representation of this value according to it's datatype.String
getContentType()
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getContentType()
insteadString
getFileName()
Deprecated.Intrexx 7: Method will be removed in next major version.de.uplanet.lucy.server.util.IVHFileDescriptor
getFirstFile()
String
getPath()
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getPath()
insteadde.uplanet.lucy.server.util.IVHFileDescriptors
getRawValue()
Returns a IVHFIleDescriptor instance.QName
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
isSingleFile()
-
-
-
Constructor Detail
-
FileValueHolder
public FileValueHolder()
Standard constructor.
-
FileValueHolder
public FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptor p_descriptor)
Standard constructor.
-
FileValueHolder
public FileValueHolder(Collection<? extends de.uplanet.lucy.server.util.IVHFileDescriptor> p_descriptors)
- 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 Detail
-
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
public QName 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
public String 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
public de.uplanet.lucy.server.util.IVHFileDescriptor getFirstFile()
- Specified by:
getFirstFile
in interfaceIFileValueHolder
- Returns:
- Returns the first file descriptor.
-
getFileName
@Deprecated public String 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 public String 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 public String getContentType()
Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getContentType()
instead- Returns:
- The MIME content type or
null
.
-
-