de.uni_bremen.st.rcf.model
Class Directories

java.lang.Object
  extended by de.uni_bremen.st.rcf.model.Relation<Directory>
      extended by de.uni_bremen.st.rcf.model.Directories
All Implemented Interfaces:
Iterable<Directory>

public class Directories
extends Relation<Directory>

The Directory relation.

Author:
harder

Method Summary
 Directory addDirectory(String path, Version version)
          Adds a new Directory to the relation if the directory exists in the version the existing will be returned instead of creating a new one.
 Attribute getClientIdAttribute()
           
 Attribute getFilesAttribute()
           
 Attribute getIdAttribute()
           
 Attribute getPathAttribute()
           
 Attribute getVersionAttribute()
           
 
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
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIdAttribute

public Attribute getIdAttribute()

getClientIdAttribute

public Attribute getClientIdAttribute()

getPathAttribute

public Attribute getPathAttribute()

getVersionAttribute

public Attribute getVersionAttribute()

getFilesAttribute

public Attribute getFilesAttribute()

addDirectory

public Directory addDirectory(String path,
                              Version version)
Adds a new Directory to the relation if the directory exists in the version the existing will be returned instead of creating a new one.

Parameters:
path - The path of the directory relative to the basepath of version. Must not be null.
version - The version of the directory. Must not be null. Newly created directories will be added to the directory list of the version.
Returns:
The newly created directory or an equivalent, already existing one.


Copyright © 2011. All Rights Reserved.