Klasse FileValueHolder

java.lang.Object
de.uplanet.lucy.server.dataobjects.impl.FileValueHolder
Alle implementierten Schnittstellen:
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).
  • Konstruktordetails

    • FileValueHolder

      public FileValueHolder()
      Standard constructor.
    • FileValueHolder

      public FileValueHolder(IVHFileDescriptor p_descriptor)
      Standard constructor.
    • FileValueHolder

      public FileValueHolder(Collection<? extends IVHFileDescriptor> p_descriptors)
      Parameter:
      p_descriptors - A collections of file descriptors.
    • FileValueHolder

      public FileValueHolder(de.uplanet.lucy.server.util.IVHFileDescriptors p_descriptors)
      Parameter:
      p_descriptors - A file descriptor.
  • Methodendetails

    • getRawValue

      public de.uplanet.lucy.server.util.IVHFileDescriptors getRawValue()
      Beschreibung aus Schnittstelle kopiert: IFileValueHolder
      Returns a IVHFIleDescriptor instance. Maybe a empty list, never null.
      Angegeben von:
      getRawValue in Schnittstelle IFileValueHolder
      Angegeben von:
      getRawValue in Schnittstelle IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
      Gibt zurück:
      The raw data.
    • getType

      public QName getType()
      Beschreibung aus Schnittstelle kopiert: IValueHolder
      The type of data this value holder holds.
      Angegeben von:
      getType in Schnittstelle IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
    • getValue

      public de.uplanet.lucy.server.util.IVHFileDescriptors getValue()
      Beschreibung aus Schnittstelle kopiert: 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.

      Angegeben von:
      getValue in Schnittstelle IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
      Gibt zurück:
      The data.
    • hasValue

      public boolean hasValue()
      Beschreibung aus Schnittstelle kopiert: IValueHolder
      Check if this value holder currently holds data or not.
      Angegeben von:
      hasValue in Schnittstelle IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
      Gibt zurück:
      true if the data holder holds data, or false otherwise.
    • getCanonicalLexicalRepresentation

      public String getCanonicalLexicalRepresentation()
      Beschreibung aus Schnittstelle kopiert: IValueHolder
      Get the canonical lexical representation of this value according to it's datatype.
      Angegeben von:
      getCanonicalLexicalRepresentation in Schnittstelle IValueHolder<de.uplanet.lucy.server.util.IVHFileDescriptors>
      Gibt zurück:
      The canonical lexical representation, or null if such a representation does not exist (e.g. if IValueHolder.hasValue() returns false).
    • isSingleFile

      public boolean isSingleFile()
      Angegeben von:
      isSingleFile in Schnittstelle IFileValueHolder
      Gibt zurück:
      Returns true if only one file holds the value holder otherwise false.
    • getFirstFile

      public IVHFileDescriptor getFirstFile()
      Angegeben von:
      getFirstFile in Schnittstelle IFileValueHolder
      Gibt zurück:
      Returns the first file descriptor.
    • getFileName

      @Deprecated public String getFileName()
      Veraltet.
      Intrexx 7: Method will be removed in next major version. Please use getFirstFile().getFileName() instead
      Gibt zurück:
      Returns the filename of the document e.g. text_aaa.txt
    • getPath

      @Deprecated public String getPath()
      Veraltet.
      Intrexx 7: Method will be removed in next major version.Please use getFirstFile().getPath() instead
      Gibt zurück:
      The path to the file e.g. internal/files/CF56A0484DA23407F958080FDD64F75C63DABC54/textaaa_0.txt
    • getContentType

      @Deprecated public String getContentType()
      Veraltet.
      Intrexx 7: Method will be removed in next major version.Please use getFirstFile().getContentType() instead
      Gibt zurück:
      The MIME content type or null.