br.com.objectos.fs
Interface PathName

All Known Subinterfaces:
Directory, RegularFile, ResolvedPath, WritablePathName

@Generated(value="br.com.objectos.core.multirelease.processor.ConcreteInterfaceProcessor")
public interface PathName

Represents a pathname in a file system.

Since:
2

Method Summary
<R,P> R
acceptPathNameVisitor(PathNameVisitor<R,P> visitor, P p)
          Accept method used to implement the visitor pattern.
 boolean exists()
          Returns true if the pathname represented by this object exists.
 String getName()
          Returns the name of this object.
 String getPath()
          Returns the full path of this object.
 File toFile()
          Returns a File representation of this pathname.
 URI toUri()
          Returns an URI representation of this pathname.
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface br.com.objectos.core.object.ToStringObject
formatToString
 

Method Detail

acceptPathNameVisitor

<R,P> R acceptPathNameVisitor(PathNameVisitor<R,P> visitor,
                              P p)
                        throws IOException
Accept method used to implement the visitor pattern.

Type Parameters:
R - the result type of this operation
P - the type of the additional object
Parameters:
visitor - the visitor operating on this PathName instance
p - additional object passed to the visitor
Returns:
the value returned from the visitor method
Throws:
IOException - if an I/O error occurs

exists

boolean exists()
Returns true if the pathname represented by this object exists.

Returns:
true if the pathname represented by this object exists

getName

String getName()
Returns the name of this object.

Returns:
the name of this object

getPath

String getPath()
Returns the full path of this object.

Returns:
the full path of this object

toFile

File toFile()
Returns a File representation of this pathname.

Returns:
a File representation of this pathname

toUri

URI toUri()
Returns an URI representation of this pathname.

Returns:
an URI representation of this pathname


Copyright © 2021 Objectos Software LTDA. All rights reserved.