Package org.openxava.web.editors
Class AttachedFile
java.lang.Object
org.openxava.model.Identifiable
org.openxava.web.editors.AttachedFile
Class that allows to implement stereotypes FILE and FILES.
It's a JPA entity.
- Author:
- Jeromy Altuna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Files can be organized to form a set of related files (fileset, directory, folder, etc), here called library.getName()voidsetData(byte[] data) voidsetLibraryId(String libraryId) voidMethods inherited from class org.openxava.model.Identifiable
getId, setId
-
Constructor Details
-
AttachedFile
public AttachedFile()
-
-
Method Details
-
getName
- Returns:
- the file name
-
setName
-
getData
public byte[] getData()- Returns:
- a array containing the file data
-
setData
public void setData(byte[] data) -
getLibraryId
Files can be organized to form a set of related files (fileset, directory, folder, etc), here called library.The value returned by this method can be null in the case of files that do not belong to any fileset.
- Returns:
- Unique identifier of the fileset
-
setLibraryId
-