Interface ClientlibElement
-
- All Known Implementing Classes:
Clientlib
,ClientlibCategory
,ClientlibExternalUri
,ClientlibFile
,ClientlibResourceFolder
public interface ClientlibElement
Interface common to all elements contained in client libraries.
-
-
Method Summary
All Methods Instance Methods Abstract 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);
.ClientlibRef
getRef()
Clientlib.Type
getType()
The resource-type for which it was created.ClientlibLink
makeLink()
Creates aClientlibLink
to this element.
-
-
-
Method Detail
-
accept
void accept(ClientlibVisitor visitor, ClientlibVisitor.VisitorMode mode, ClientlibResourceFolder parent) throws IOException, javax.jcr.RepositoryException
Dispatcher for the appropriate method of visitor: just callsvisitor.visit(this, mode, parent);
.- Parameters:
visitor
- the visitor we want to dispatch tomode
- processing modeparent
- if applicable, the parent of the visited resource- Throws:
IOException
javax.jcr.RepositoryException
-
getType
Clientlib.Type getType()
The resource-type for which it was created.
-
makeLink
ClientlibLink makeLink()
Creates aClientlibLink
to this element.- Throws:
UnsupportedOperationException
- if that isn't supported by this kind of element (that is, onClientlibResourceFolder
).
-
getRef
ClientlibRef getRef()
Returns aClientlibRef
ClientlibRef.isSatisfiedby(ClientlibLink)
makeLink()
. This is either a fresh one, or, in case of files, the one with which the file was located.- Throws:
UnsupportedOperationException
- if that isn't supported by this kind of element (that is, onClientlibResourceFolder
).
-
-