de.uni_bremen.st.rcf.model
Class Files
java.lang.Object
de.uni_bremen.st.rcf.model.Relation<File>
de.uni_bremen.st.rcf.model.Files
- All Implemented Interfaces:
- Iterable<File>
public class Files
- extends Relation<File>
The File relation.
- Author:
- harder
Methods inherited from class de.uni_bremen.st.rcf.model.Relation |
addAttribute, addEnumAttribute, addListAttribute, addReferenceAttribute, addReferenceListAttribute, addScalarAttribute, append, equals, getAttribute, getAttributes, getEntry, getEntryType, getFirstEntry, getName, getRCF, hasAttribute, iterator, size |
getIdAttribute
public Attribute getIdAttribute()
getClientIdAttribute
public Attribute getClientIdAttribute()
getNameAttribute
public Attribute getNameAttribute()
getLocAttribute
public Attribute getLocAttribute()
getNumTokensAttribute
public Attribute getNumTokensAttribute()
getDirectoryAttribute
public Attribute getDirectoryAttribute()
getVersionAttribute
public Attribute getVersionAttribute()
addFile
public File addFile(String path,
Version version)
- Adds a new File to the relation if an equal file does not exists and returns
it. All data stuctures required by the file (such as directories) will be
created as well.
- Parameters:
path
- The path of the file, relative to the basepath of the
version. Must not end with '', '/', '.' or "..". Must
not be null.version
- The version of the file. Newly created files will be
added to the file list of the version just as the
created directories.
- Returns:
- The newly created file or an equivalent, already existent one.
Copyright © 2011. All Rights Reserved.