Package org.apache.rat.document
Class ArchiveEntryName
java.lang.Object
org.apache.rat.document.DocumentName
org.apache.rat.document.ArchiveEntryName
- All Implemented Interfaces:
Comparable<DocumentName>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.rat.document.DocumentName
DocumentName.Builder, DocumentName.FSInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasFile()
Creates a file from the document name.asPath()
Creates a path from the document name.Gets the fully qualified basename of the document.Gets the portion of the name that is not part of the base name.Creates a new DocumentName by adding the child to the current name.Methods inherited from class org.apache.rat.document.DocumentName
builder, builder, builder, builder, builder, compareTo, equals, getBaseDocumentName, getDirectorySeparator, getName, getRoot, getShortName, hashCode, isCaseSensitive, localized, toString
-
Constructor Details
-
ArchiveEntryName
-
-
Method Details
-
asFile
Description copied from class:DocumentName
Creates a file from the document name.- Overrides:
asFile
in classDocumentName
- Returns:
- a new File object.
-
asPath
Description copied from class:DocumentName
Creates a path from the document name.- Overrides:
asPath
in classDocumentName
- Returns:
- a new Path object.
-
resolve
Description copied from class:DocumentName
Creates a new DocumentName by adding the child to the current name. Resulting documentName will have the same base name.- Overrides:
resolve
in classDocumentName
- Parameters:
child
- the child to add (must use directory separator from this document name).- Returns:
- the new document name with the same
DocumentName.baseName
, directory sensitivity and case sensitivity as this one.
-
getBaseName
Description copied from class:DocumentName
Gets the fully qualified basename of the document.- Overrides:
getBaseName
in classDocumentName
- Returns:
- the fully qualified basename of the document.
-
localized
Description copied from class:DocumentName
Gets the portion of the name that is not part of the base name. The resulting name will always start with the directory separator.- Overrides:
localized
in classDocumentName
- Parameters:
dirSeparator
- The character(s) to use to separate directories in the result.- Returns:
- the portion of the name that is not part of the base name.
-