public class MetaDocument extends MetaFile
CALIBRATION_LEVEL, HIERARCHY_LEVEL, SPECTRUM_LEVEL| Modifier | Constructor and Description |
|---|---|
protected |
MetaDocument()
default constructor
|
protected |
MetaDocument(attribute attr)
constructor from an attribute definition
|
protected |
MetaDocument(attribute attr,
java.lang.Object meta_value)
Constructor from attribute and value
|
protected |
MetaDocument(java.lang.String category_name,
java.lang.String category_value,
java.lang.Object meta_value)
constructor from a category name and value
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allows_multi_insert()
returns "true" to indicate that documents can be inserted monolithic statements
|
java.lang.String |
getDefaultFilenameExtension()
returns ".pdf" since this is the only type of file we support
|
boolean |
hasEqualValue(MetaParameter mp) |
void |
readValue(java.io.InputStream is,
java.lang.String mimeType)
read the meta-parameter value from an input stream
|
void |
setEmptyValue()
initialise the meta-parameter with an empty value
|
void |
setValue(java.lang.Object value) |
static boolean |
supportsValue(java.lang.Object value) |
java.lang.String |
valueAsString() |
void |
writeValue(java.io.OutputStream os)
write the document to an output stream
|
getAnnotation, getAttributeId, getAttributeName, getBlob_lazy_loading, getBlob_size_in_MB, getBlob_size, getCategoryName, getCategoryValue, getDefaultStorageField, getDefaultUnitId, getDescription, getEavId, getEAVValue, getFieldPos, getIsBooleanValue, getLevel, getUnitId, getUnitName, getValue, newInstance, newInstance, newInstance, setAnnotation, setAttributeId, setAttributeName, setBlob_lazy_loading, setBlob_size, setCategoryName, setCategoryValue, setDefaultStorageField, setDefaultUnitId, setDescription, setEavId, setIsBooleanValue, setLevel, setUnitId, setUnitName, setUnits, setValueprotected MetaDocument()
protected MetaDocument(attribute attr)
protected MetaDocument(java.lang.String category_name,
java.lang.String category_value,
java.lang.Object meta_value)
throws MetaParameterFormatException
MetaParameterFormatExceptionprotected MetaDocument(attribute attr, java.lang.Object meta_value) throws MetaParameterFormatException
attr - the attributemeta_value - the metaparameter valueMetaParameterFormatException - meta_value cannot be assigned to a file meta-parameterpublic boolean allows_multi_insert()
allows_multi_insert in class MetaParameterpublic boolean hasEqualValue(MetaParameter mp)
hasEqualValue in class MetaParameterpublic java.lang.String getDefaultFilenameExtension()
getDefaultFilenameExtension in class MetaFilepublic void readValue(java.io.InputStream is,
java.lang.String mimeType)
throws java.io.IOException
public void setEmptyValue()
setEmptyValue in class MetaParameterpublic void setValue(java.lang.Object value)
throws MetaParameterFormatException
setValue in class MetaParameterMetaParameterFormatExceptionpublic static boolean supportsValue(java.lang.Object value)
public java.lang.String valueAsString()
valueAsString in class MetaParameterpublic void writeValue(java.io.OutputStream os)
throws java.io.IOException
writeValue in class MetaFileos - the output streamjava.io.IOException - write error