public class FSXMLObjectCreator extends java.lang.Object
Constructor and Description |
---|
FSXMLObjectCreator(java.lang.Long seed) |
Modifier and Type | Method and Description |
---|---|
UserIdentity |
createUserIdentity() |
File |
generateFile() |
File |
generateFile(UserIdentity userId,
long fileId,
java.lang.String filePath) |
java.lang.Long |
generateFileId() |
FileList |
generateFileList(UserIdentity userIdentity,
int fileCount,
long[] fileIds) |
java.lang.String |
generateFilename(java.lang.String filename) |
public FSXMLObjectCreator(java.lang.Long seed)
seed
- for random generator, or null to use default (system time in nanoseconds)public java.lang.String generateFilename(java.lang.String filename)
filename
- FileHandler.generateFilename(String)
public java.lang.Long generateFileId()
public UserIdentity createUserIdentity()
CAXMLObjectCreator.createUserIdentity()
public FileList generateFileList(UserIdentity userIdentity, int fileCount, long[] fileIds)
userIdentity
- if null or invalid, new one will be randomly generatedfileCount
- if file ids are given and the count is lower than the file id count, only the count amount of files will be returned. If count is more than file id count, only file id count of files will be returned.fileIds
- optional file idspublic File generateFile()
public File generateFile(UserIdentity userId, long fileId, java.lang.String filePath)
userId
- fileId
- filePath
- Copyright © 2015 Tampere University of Technology, Pori Department.