public class LinkDescriptor extends Object implements Cloneable, LinkHandler
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() |
public LinkDescriptor()
public LinkDescriptor(String id)
public void setGuard(String expr) throws ParseException
ParseException
public String getId()
public String getPath()
public void setHandler(LinkHandler handler)
public LinkHandler getHandler()
public String getAdapter()
public String getType()
public String[] getFacets()
public void addCategories(Collection<String> categories)
public void addCategory(String category)
public boolean hasCategory(String category)
public boolean acceptResource(Resource context)
public boolean isEnabled(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 © 2015 Nuxeo SA. All rights reserved.