Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.intellij.project.filesystem.PathFactory Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.intellij.project.filesystem.PathFactory:
de.fu_berlin.inf.dpp.filesystem.IPathFactory

List of all members.

Public Member Functions

String fromPath (IPath path)
IPath fromString (String name)

Member Function Documentation

String de.fu_berlin.inf.dpp.intellij.project.filesystem.PathFactory.fromPath ( IPath  path)

Converts a path to its string representation

Parameters:
paththe path to convert
Returns:
the string representation of the path
Exceptions:
NullPointerExceptionif path is null
IllegalArgumentExceptionif the path is not relative (e.g it presents a full path like /etc/init.d/)

Implements de.fu_berlin.inf.dpp.filesystem.IPathFactory.

IPath de.fu_berlin.inf.dpp.intellij.project.filesystem.PathFactory.fromString ( String  name)

Converts a string to a path object

Parameters:
namethe name of the path to convert
Returns:
a path object representing the path of the given name
Exceptions:
NullPointerExceptionif name is null
IllegalArgumentExceptionif the resulting path object is not a relative path

Implements de.fu_berlin.inf.dpp.filesystem.IPathFactory.

 All Classes Namespaces Files Functions Variables Enumerations