Class ClientlibCategory
- java.lang.Object
-
- com.composum.sling.clientlibs.handle.ClientlibCategory
-
- All Implemented Interfaces:
ClientlibElement
public class ClientlibCategory extends Object implements ClientlibElement
Models a category of client libraries.
-
-
Constructor Summary
Constructors Constructor Description ClientlibCategory(ClientlibRef ref, List<org.apache.sling.api.resource.Resource> clientlibResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ClientlibVisitor visitor, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent)
Dispatcher for the appropriate method of visitor: just callsvisitor.visit(this, mode, parent);
.boolean
equals(Object o)
ClientlibRef
getRef()
Clientlib.Type
getType()
The resource-type for which it was created.int
hashCode()
ClientlibLink
makeLink()
Creates aClientlibLink
to this element.String
toString()
-
-
-
Constructor Detail
-
ClientlibCategory
public ClientlibCategory(ClientlibRef ref, List<org.apache.sling.api.resource.Resource> clientlibResources)
-
-
Method Detail
-
accept
public void accept(ClientlibVisitor visitor, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws IOException, javax.jcr.RepositoryException
Description copied from interface:ClientlibElement
Dispatcher for the appropriate method of visitor: just callsvisitor.visit(this, mode, parent);
.- Specified by:
accept
in interfaceClientlibElement
- Parameters:
visitor
- the visitor we want to dispatch tomode
- processing modeparent
- if applicable, the parent of the visited resource- Throws:
IOException
javax.jcr.RepositoryException
-
getRef
public ClientlibRef getRef()
Description copied from interface:ClientlibElement
Returns aClientlibRef
ClientlibRef.isSatisfiedby(ClientlibLink)
ClientlibElement.makeLink()
. This is either a fresh one, or, in case of files, the one with which the file was located.- Specified by:
getRef
in interfaceClientlibElement
-
makeLink
public ClientlibLink makeLink()
Description copied from interface:ClientlibElement
Creates aClientlibLink
to this element.- Specified by:
makeLink
in interfaceClientlibElement
-
getType
public Clientlib.Type getType()
Description copied from interface:ClientlibElement
The resource-type for which it was created.- Specified by:
getType
in interfaceClientlibElement
-
-