Class DocFile
java.lang.Object
org.hibernate.tool.internal.export.doc.DocFile
Represents a documentation file.
- Author:
- Ricardo C. Moral
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildRefTo(DocFile target) Return a path-like reference to the specified file.getFile()Returns the File representation.Return the parent DocFolder.getName()Returns the name of the file.Returns a list with the folders from root.toString()Return a String representation of this file.
-
Constructor Details
-
DocFile
Constructor.- Parameters:
pName- the name of the file.pFolder- the parent folder.- Throws:
IllegalArgumentException- if one of the parameters is null.
-
-
Method Details
-
getName
Returns the name of the file.- Returns:
- the name of the file.
-
getFolder
Return the parent DocFolder.- Returns:
- the DocFolder.
-
getFile
Returns the File representation.- Returns:
- the File.
-
getPathFolders
Returns a list with the folders from root.- Returns:
- a list with the folders from root.
-
buildRefTo
Return a path-like reference to the specified file.- Parameters:
target- the target file.- Returns:
- a path-like reference string.
-
toString
Return a String representation of this file.
-