Klasse FileContentValueHolder

java.lang.Object
de.uplanet.lucy.server.dataobjects.impl.FileContentValueHolder
Alle implementierten Schnittstellen:
IValueHolder<Object>

public final class FileContentValueHolder extends Object implements IValueHolder<Object>

Note: This class is intended to be used in scripting environments. Do not use it in other contexts.

  • Felddetails

    • SYSPROP_MAX_FILE_SIZE

      @SystemProperty(defaultValue="10000000") public static final String SYSPROP_MAX_FILE_SIZE
      de.uplanet.lucy.server.dataobjects.impl.FileContentValueHolder.maxFileSize
  • Konstruktordetails

    • FileContentValueHolder

      public FileContentValueHolder(String p_strPath, QName p_qnmType)
      Create a value holder for FileContentValueHolder
      Parameter:
      p_strPath -
      p_qnmType -
    • FileContentValueHolder

      public FileContentValueHolder(File p_file, QName p_qnmType)
    • FileContentValueHolder

      public FileContentValueHolder(File p_file, QName p_qnmType, String p_strEncoding)
  • Methodendetails

    • getType

      public QName getType()
      Beschreibung aus Schnittstelle kopiert: IValueHolder
      The type of data this value holder holds.
      Angegeben von:
      getType in Schnittstelle IValueHolder<Object>
    • getValue

      public Object 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<Object>
      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<Object>
      Gibt zurück:
      true if the data holder holds data, or false otherwise.
    • getRawValue

      public Object getRawValue()
      Get the raw data that this value holder holds.

      Note: this value holder always returns raw data as java.lang.String.

      Angegeben von:
      getRawValue in Schnittstelle IValueHolder<Object>
      Gibt zurück:
      The raw data as java.lang.String.
    • 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<Object>
      Gibt zurück:
      The value that was passed to this value holder at construction time.