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 StringgetCanonicalLexicalRepresentation()Get the canonical lexical representation of this value according to it's datatype.StringgetContentType()Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getContentType()insteadStringgetFileName()Deprecated.Intrexx 7: Method will be removed in next major version.de.uplanet.lucy.server.util.IVHFileDescriptorgetFirstFile()StringgetPath()Deprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getPath()insteadde.uplanet.lucy.server.util.IVHFileDescriptorsgetRawValue()Returns a IVHFIleDescriptor instance.QNamegetType()The type of data this value holder holds.de.uplanet.lucy.server.util.IVHFileDescriptorsgetValue()Get the data that this value holder holds.booleanhasValue()Check if this value holder currently holds data or not.booleanisSingleFile()
-
-
-
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:IFileValueHolderReturns a IVHFIleDescriptor instance. Maybe a empty list, nevernull.- Specified by:
getRawValuein interfaceIFileValueHolder- Specified by:
getRawValuein interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>- Returns:
- The raw data.
-
getType
public QName getType()
Description copied from interface:IValueHolderThe type of data this value holder holds.- Specified by:
getTypein interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
-
getValue
public de.uplanet.lucy.server.util.IVHFileDescriptors getValue()
Description copied from interface:IValueHolderGet 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:
getValuein interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>- Returns:
- The data.
-
hasValue
public boolean hasValue()
Description copied from interface:IValueHolderCheck if this value holder currently holds data or not.- Specified by:
hasValuein interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>- Returns:
trueif the data holder holds data, orfalseotherwise.
-
getCanonicalLexicalRepresentation
public String getCanonicalLexicalRepresentation()
Description copied from interface:IValueHolderGet the canonical lexical representation of this value according to it's datatype.- Specified by:
getCanonicalLexicalRepresentationin interfaceIValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>- Returns:
- The canonical lexical representation, or
nullif such a representation does not exist (e.g. ifIValueHolder.hasValue()returnsfalse).
-
isSingleFile
public boolean isSingleFile()
- Specified by:
isSingleFilein interfaceIFileValueHolder- Returns:
- Returns
trueif only one file holds the value holder otherwisefalse.
-
getFirstFile
public de.uplanet.lucy.server.util.IVHFileDescriptor getFirstFile()
- Specified by:
getFirstFilein 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.
-
-