Class ResourceType

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResourceType
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ResourceType

        public ResourceType​(@Nonnull
                            java.lang.String moduleId,
                            @Nullable
                            java.lang.String typeId)
    • Method Detail

      • getModuleId

        public java.lang.String getModuleId()
      • rootPath

        public ResourcePath rootPath()
        Returns:
        the ResourcePath for a resource to be placed in the module root. Applicable for root folders and singleton resources.
      • subPath

        public ResourcePath subPath​(java.lang.String path)
      • getTypeId

        public java.lang.String getTypeId()
        Returns:
        the resource type found after the moduleId in a resource's path
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object