de.uplanet.lucy.server.dataobjects.impl
Class FileContentValueHolder

java.lang.Object
  extended by de.uplanet.lucy.server.dataobjects.impl.FileContentValueHolder
All Implemented Interfaces:
IValueHolder<java.lang.Object>

public final class FileContentValueHolder
extends java.lang.Object
implements IValueHolder<java.lang.Object>

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

Version:
$Revision: 86610 $

Field Summary
static java.lang.String SYSPROP_MAX_FILE_SIZE
          de.uplanet.lucy.server.dataobjects.impl.FileContentValueHolder.maxFileSize
 
Constructor Summary
FileContentValueHolder(java.io.File p_file, javax.xml.namespace.QName p_qnmType)
           
FileContentValueHolder(java.io.File p_file, javax.xml.namespace.QName p_qnmType, java.lang.String p_strEncoding)
           
FileContentValueHolder(java.lang.String p_strPath, javax.xml.namespace.QName p_qnmType)
          Create a value holder for FileContentValueHolder
 
Method Summary
 java.lang.String getCanonicalLexicalRepresentation()
          Get the canonical lexical representation of this value according to it's datatype.
 java.lang.Object getRawValue()
          Get the raw data that this value holder holds.
 javax.xml.namespace.QName getType()
          The type of data this value holder holds.
 java.lang.Object getValue()
          Get the data that this value holder holds.
 boolean hasValue()
          Check if this value holder currently holds data or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSPROP_MAX_FILE_SIZE

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

Constructor Detail

FileContentValueHolder

public FileContentValueHolder(java.lang.String p_strPath,
                              javax.xml.namespace.QName p_qnmType)
Create a value holder for FileContentValueHolder

Parameters:
p_strPath -
p_qnmType -

FileContentValueHolder

public FileContentValueHolder(java.io.File p_file,
                              javax.xml.namespace.QName p_qnmType)

FileContentValueHolder

public FileContentValueHolder(java.io.File p_file,
                              javax.xml.namespace.QName p_qnmType,
                              java.lang.String p_strEncoding)
Method Detail

getType

public javax.xml.namespace.QName getType()
Description copied from interface: IValueHolder
The type of data this value holder holds.

Specified by:
getType in interface IValueHolder<java.lang.Object>

getValue

public java.lang.Object getValue()
Description copied from interface: 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.

Specified by:
getValue in interface IValueHolder<java.lang.Object>
Returns:
The data.

hasValue

public boolean hasValue()
Description copied from interface: IValueHolder
Check if this value holder currently holds data or not.

Specified by:
hasValue in interface IValueHolder<java.lang.Object>
Returns:
true if the data holder holds data, or false otherwise.

getRawValue

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

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

Specified by:
getRawValue in interface IValueHolder<java.lang.Object>
Returns:
The raw data as java.lang.String.

getCanonicalLexicalRepresentation

public java.lang.String getCanonicalLexicalRepresentation()
Description copied from interface: IValueHolder
Get the canonical lexical representation of this value according to it's datatype.

Specified by:
getCanonicalLexicalRepresentation in interface IValueHolder<java.lang.Object>
Returns:
The value that was passed to this value holder at construction time.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.