public class LinkDescriptor extends Object implements Cloneable, LinkHandler
Modifier and Type | Field and Description |
---|---|
protected String |
adapter
The object adapter the link may have as owner
|
protected List<String> |
categories |
protected String[] |
facets |
protected String |
fragment |
protected Guard |
guard |
protected LinkHandler |
handler |
protected String |
handlerClass |
protected String |
id |
protected String |
path |
protected String |
type |
Constructor and Description |
---|
LinkDescriptor() |
LinkDescriptor(String id) |
LinkDescriptor(String id,
String fragment) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptResource(Resource context) |
void |
addCategories(Collection<String> categories) |
void |
addCategory(String category) |
void |
applyFragment(LinkDescriptor fragment) |
LinkDescriptor |
clone() |
boolean |
equals(Object obj) |
String |
getAdapter() |
List<String> |
getCategories() |
String |
getCode(LinkDescriptor link,
Resource resource) |
String |
getCode(Resource resource) |
String[] |
getFacets() |
LinkHandler |
getHandler() |
String |
getId() |
String |
getPath() |
String |
getType() |
boolean |
hasCategory(String category) |
boolean |
isEnabled(Resource context) |
boolean |
isFragment() |
void |
setCategories(List<String> categories) |
void |
setGuard(String expr) |
void |
setHandler(LinkHandler handler) |
String |
toString() |
protected volatile LinkHandler handler
protected String handlerClass
protected List<String> categories
public LinkDescriptor()
public LinkDescriptor(String id)
public LinkDescriptor(String id, String fragment)
public void setGuard(String expr) throws ParseException
ParseException
public void setHandler(LinkHandler handler)
public LinkHandler getHandler()
public String getAdapter()
public void setCategories(List<String> categories)
public void addCategories(Collection<String> categories)
public void addCategory(String category)
public List<String> getCategories()
public boolean hasCategory(String category)
public boolean acceptResource(Resource context)
public String getCode(LinkDescriptor link, Resource resource)
getCode
in interface LinkHandler
public boolean isFragment()
public void applyFragment(LinkDescriptor fragment)
public LinkDescriptor clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2018 Nuxeo. All rights reserved.