public class PackagingElementFactoryImpl extends PackagingElementFactory
Modifier and Type | Field and Description |
---|---|
static PackagingElementType<ArchivePackagingElement> |
ARCHIVE_ELEMENT_TYPE |
static PackagingElementType<ArtifactRootElement<?>> |
ARTIFACT_ROOT_ELEMENT_TYPE |
static PackagingElementType<DirectoryCopyPackagingElement> |
DIRECTORY_COPY_ELEMENT_TYPE |
static PackagingElementType<DirectoryPackagingElement> |
DIRECTORY_ELEMENT_TYPE |
static PackagingElementType<ExtractedDirectoryPackagingElement> |
EXTRACTED_DIRECTORY_ELEMENT_TYPE |
static PackagingElementType<FileCopyPackagingElement> |
FILE_COPY_ELEMENT_TYPE |
Constructor and Description |
---|
PackagingElementFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFileCopy(CompositePackagingElement<?> root,
java.lang.String outputDirectoryPath,
java.lang.String sourceFilePath) |
void |
addFileCopy(CompositePackagingElement<?> root,
java.lang.String outputDirectoryPath,
java.lang.String sourceFilePath,
java.lang.String outputFileName) |
CompositePackagingElement<?> |
createArchive(java.lang.String archiveFileName) |
PackagingElement<?> |
createArtifactElement(ArtifactPointer artifactPointer,
Project project) |
PackagingElement<?> |
createArtifactElement(Artifact artifact,
Project project) |
ArtifactRootElement<?> |
createArtifactRootElement() |
DirectoryPackagingElement |
createDirectory(java.lang.String directoryName) |
PackagingElement<?> |
createDirectoryCopyWithParentDirectories(java.lang.String filePath,
java.lang.String relativeOutputPath) |
static CompositePackagingElement<?> |
createDirectoryOrArchiveWithParents(java.lang.String path,
boolean archive) |
PackagingElement<?> |
createExtractedDirectory(VirtualFile jarEntry) |
PackagingElement<?> |
createExtractedDirectoryWithParentDirectories(java.lang.String jarPath,
java.lang.String pathInJar,
java.lang.String relativeOutputPath) |
PackagingElement<?> |
createFileCopy(java.lang.String filePath,
java.lang.String outputFileName) |
PackagingElement<?> |
createFileCopyWithParentDirectories(java.lang.String filePath,
java.lang.String relativeOutputPath) |
PackagingElement<?> |
createFileCopyWithParentDirectories(java.lang.String filePath,
java.lang.String relativeOutputPath,
java.lang.String outputFileName) |
java.util.List<? extends PackagingElement<?>> |
createLibraryElements(Library library) |
PackagingElement<?> |
createLibraryFiles(java.lang.String libraryName,
java.lang.String level,
java.lang.String moduleName) |
PackagingElement<?> |
createModuleOutput(Module module) |
PackagingElement<?> |
createModuleOutput(java.lang.String moduleName,
Project project) |
PackagingElement<?> |
createModuleSource(Module module) |
java.util.List<? extends PackagingElement<?>> |
createParentDirectories(java.lang.String relativeOutputPath,
java.util.List<? extends PackagingElement<?>> elements) |
PackagingElement<?> |
createParentDirectories(java.lang.String relativeOutputPath,
PackagingElement<?> element) |
PackagingElement<?> |
createTestModuleOutput(Module module) |
PackagingElementType<?> |
findElementType(java.lang.String id) |
PackagingElementType [] |
getAllElementTypes() |
ComplexPackagingElementType<?> [] |
getComplexElementTypes() |
CompositePackagingElementType<?> [] |
getCompositeElementTypes() |
PackagingElementType<?> [] |
getNonCompositeElementTypes() |
CompositePackagingElement<?> |
getOrCreateArchive(CompositePackagingElement<?> parent,
java.lang.String relativePath) |
CompositePackagingElement<?> |
getOrCreateDirectory(CompositePackagingElement<?> parent,
java.lang.String relativePath) |
static java.lang.String |
suggestFileName(CompositePackagingElement<?> parent,
java.lang.String prefix,
java.lang.String suffix) |
getInstance
public static final PackagingElementType<DirectoryPackagingElement> DIRECTORY_ELEMENT_TYPE
public static final PackagingElementType<ArchivePackagingElement> ARCHIVE_ELEMENT_TYPE
public static final PackagingElementType<FileCopyPackagingElement> FILE_COPY_ELEMENT_TYPE
public static final PackagingElementType<DirectoryCopyPackagingElement> DIRECTORY_COPY_ELEMENT_TYPE
public static final PackagingElementType<ExtractedDirectoryPackagingElement> EXTRACTED_DIRECTORY_ELEMENT_TYPE
public static final PackagingElementType<ArtifactRootElement<?>> ARTIFACT_ROOT_ELEMENT_TYPE
public PackagingElementType<?> [] getNonCompositeElementTypes()
getNonCompositeElementTypes
in class PackagingElementFactory
public ComplexPackagingElementType<?> [] getComplexElementTypes()
getComplexElementTypes
in class PackagingElementFactory
public CompositePackagingElementType<?> [] getCompositeElementTypes()
getCompositeElementTypes
in class PackagingElementFactory
public PackagingElementType<?> findElementType(java.lang.String id)
findElementType
in class PackagingElementFactory
public PackagingElementType [] getAllElementTypes()
getAllElementTypes
in class PackagingElementFactory
public PackagingElement<?> createArtifactElement(Artifact artifact, Project project)
createArtifactElement
in class PackagingElementFactory
public DirectoryPackagingElement createDirectory(java.lang.String directoryName)
createDirectory
in class PackagingElementFactory
public ArtifactRootElement<?> createArtifactRootElement()
createArtifactRootElement
in class PackagingElementFactory
public CompositePackagingElement<?> getOrCreateDirectory(CompositePackagingElement<?> parent, java.lang.String relativePath)
getOrCreateDirectory
in class PackagingElementFactory
public CompositePackagingElement<?> getOrCreateArchive(CompositePackagingElement<?> parent, java.lang.String relativePath)
getOrCreateArchive
in class PackagingElementFactory
public void addFileCopy(CompositePackagingElement<?> root, java.lang.String outputDirectoryPath, java.lang.String sourceFilePath)
addFileCopy
in class PackagingElementFactory
public void addFileCopy(CompositePackagingElement<?> root, java.lang.String outputDirectoryPath, java.lang.String sourceFilePath, java.lang.String outputFileName)
addFileCopy
in class PackagingElementFactory
public PackagingElement<?> createModuleOutput(java.lang.String moduleName, Project project)
createModuleOutput
in class PackagingElementFactory
public PackagingElement<?> createModuleOutput(Module module)
createModuleOutput
in class PackagingElementFactory
public PackagingElement<?> createModuleSource(Module module)
createModuleSource
in class PackagingElementFactory
public PackagingElement<?> createTestModuleOutput(Module module)
createTestModuleOutput
in class PackagingElementFactory
public java.util.List<? extends PackagingElement<?>> createLibraryElements(Library library)
createLibraryElements
in class PackagingElementFactory
public PackagingElement<?> createArtifactElement(ArtifactPointer artifactPointer, Project project)
createArtifactElement
in class PackagingElementFactory
public PackagingElement<?> createLibraryFiles(java.lang.String libraryName, java.lang.String level, java.lang.String moduleName)
createLibraryFiles
in class PackagingElementFactory
public CompositePackagingElement<?> createArchive(java.lang.String archiveFileName)
createArchive
in class PackagingElementFactory
public static java.lang.String suggestFileName(CompositePackagingElement<?> parent, java.lang.String prefix, java.lang.String suffix)
public PackagingElement<?> createDirectoryCopyWithParentDirectories(java.lang.String filePath, java.lang.String relativeOutputPath)
createDirectoryCopyWithParentDirectories
in class PackagingElementFactory
public PackagingElement<?> createExtractedDirectoryWithParentDirectories(java.lang.String jarPath, java.lang.String pathInJar, java.lang.String relativeOutputPath)
createExtractedDirectoryWithParentDirectories
in class PackagingElementFactory
public PackagingElement<?> createExtractedDirectory(VirtualFile jarEntry)
createExtractedDirectory
in class PackagingElementFactory
public PackagingElement<?> createFileCopyWithParentDirectories(java.lang.String filePath, java.lang.String relativeOutputPath)
createFileCopyWithParentDirectories
in class PackagingElementFactory
public PackagingElement<?> createFileCopyWithParentDirectories(java.lang.String filePath, java.lang.String relativeOutputPath, java.lang.String outputFileName)
createFileCopyWithParentDirectories
in class PackagingElementFactory
public PackagingElement<?> createFileCopy(java.lang.String filePath, java.lang.String outputFileName)
createFileCopy
in class PackagingElementFactory
public PackagingElement<?> createParentDirectories(java.lang.String relativeOutputPath, PackagingElement<?> element)
createParentDirectories
in class PackagingElementFactory
public java.util.List<? extends PackagingElement<?>> createParentDirectories(java.lang.String relativeOutputPath, java.util.List<? extends PackagingElement<?>> elements)
createParentDirectories
in class PackagingElementFactory
public static CompositePackagingElement<?> createDirectoryOrArchiveWithParents(java.lang.String path, boolean archive)