Package org.archifacts.core.descriptor
Interface ArtifactContainerDescriptor
-
- All Superinterfaces:
Descriptor
public interface ArtifactContainerDescriptor extends Descriptor
Describes anArtifactContainer.- Author:
- Oliver Libutzki
- See Also:
ArtifactContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>containerNameOf(com.tngtech.archunit.core.domain.JavaClass javaClass)Returns the name of theArtifactContainer.ArtifactContainerTypetype()The type of theArtifactContainerwhich this descriptor describes.
-
-
-
Method Detail
-
type
ArtifactContainerType type()
The type of theArtifactContainerwhich this descriptor describes.- Returns:
- the type of the
ArtifactContainerwhich this descriptor describes. Cannot be null.
-
containerNameOf
Optional<String> containerNameOf(com.tngtech.archunit.core.domain.JavaClass javaClass)
Returns the name of theArtifactContainer. Implementations are free to returnOptional.empty()to indicate that they cannot determine a container for the givenJavaClass.- Parameters:
javaClass- TheJavaClassto be evaluated- Returns:
- the name of the container (if present), otherwise
Optional.empty(). Cannot be null.
-
-