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 SummaryConstructorsConstructorDescriptionStandard constructor.FileValueHolder(IVHFileDescriptor p_descriptor) Standard constructor.FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors) FileValueHolder(Collection<? extends IVHFileDescriptor> p_descriptors) 
- 
Method SummaryModifier 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.IVHFileDescriptorsReturns a IVHFIleDescriptor instance.getType()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.boolean
- 
Constructor Details- 
FileValueHolderpublic FileValueHolder()Standard constructor.
- 
FileValueHolderStandard constructor.
- 
FileValueHolder- Parameters:
- p_descriptors- A collections of file descriptors.
 
- 
FileValueHolderpublic FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors) - Parameters:
- p_descriptors- A file descriptor.
 
 
- 
- 
Method Details- 
getRawValuepublic de.uplanet.lucy.server.util.IVHFileDescriptors getRawValue()Description copied from interface:IFileValueHolderReturns a IVHFIleDescriptor instance. Maybe a empty list, nevernull.- Specified by:
- getRawValuein interface- IFileValueHolder
- Specified by:
- getRawValuein interface- IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The raw data.
 
- 
getTypeDescription copied from interface:IValueHolderThe type of data this value holder holds.- Specified by:
- getTypein interface- IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
 
- 
getValuepublic 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 interface- IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The data.
 
- 
hasValuepublic boolean hasValue()Description copied from interface:IValueHolderCheck if this value holder currently holds data or not.- Specified by:
- hasValuein interface- IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- trueif the data holder holds data, or- falseotherwise.
 
- 
getCanonicalLexicalRepresentationDescription copied from interface:IValueHolderGet the canonical lexical representation of this value according to it's datatype.- Specified by:
- getCanonicalLexicalRepresentationin interface- IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
- Returns:
- The canonical lexical representation, or nullif such a representation does not exist (e.g. ifIValueHolder.hasValue()returnsfalse).
 
- 
isSingleFilepublic boolean isSingleFile()- Specified by:
- isSingleFilein interface- IFileValueHolder
- Returns:
- Returns trueif only one file holds the value holder otherwisefalse.
 
- 
getFirstFile- Specified by:
- getFirstFilein interface- IFileValueHolder
- Returns:
- Returns the first file descriptor.
 
- 
getFileNameDeprecated.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
 
- 
getPathDeprecated.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
 
- 
getContentTypeDeprecated.Intrexx 7: Method will be removed in next major version.Please usegetFirstFile().getContentType()instead- Returns:
- The MIME content type or null.
 
 
- 
getFirstFile().getContentType()instead