Class ContentPathMap


  • public final class ContentPathMap
    extends Object
    The mapping of content type to a repo path.
    • Constructor Detail

      • ContentPathMap

        public ContentPathMap()
    • Method Detail

      • contentType

        public ContentType contentType()
        Get the contentType property: Content type.
        Returns:
        the contentType value.
      • withContentType

        public ContentPathMap withContentType​(ContentType contentType)
        Set the contentType property: Content type.
        Parameters:
        contentType - the contentType value to set.
        Returns:
        the ContentPathMap object itself.
      • path

        public String path()
        Get the path property: The path to the content.
        Returns:
        the path value.
      • withPath

        public ContentPathMap withPath​(String path)
        Set the path property: The path to the content.
        Parameters:
        path - the path value to set.
        Returns:
        the ContentPathMap object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.