Class ComponentImpl

    • Constructor Detail

      • ComponentImpl

        public ComponentImpl​(org.apache.sling.api.resource.Resource resource)
    • Method Detail

      • getEditPath

        public String getEditPath()
        Returns the path for the editor for this resource if available
        Specified by:
        getEditPath in interface Component
        Returns:
        the editor path or null
      • getEditResource

        public org.apache.sling.api.resource.Resource getEditResource()
        Returns the resource for the editor for this resource if available
        Specified by:
        getEditResource in interface Component
        Returns:
        the editor resource or null
      • getResource

        public org.apache.sling.api.resource.Resource getResource()
        Specified by:
        getResource in interface Component
        Returns:
        the resource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isType

        public boolean isType​(String type)
        Returns true if the only component type on the component is the specified type.
        Specified by:
        isType in interface Component
        Parameters:
        type - the type of the resource to check
        Returns:
        true if the resource is of the specified type