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
ConstructorsConstructorDescriptionStandard 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.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
-
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: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
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
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
- Specified by:
getFirstFilein 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