com.sun.jersey.server.linking.impl
Class RefFieldDescriptor
java.lang.Object
com.sun.jersey.server.linking.impl.FieldDescriptor
com.sun.jersey.server.linking.impl.RefFieldDescriptor
- All Implemented Interfaces:
- RefDescriptor
public class RefFieldDescriptor
- extends FieldDescriptor
- implements RefDescriptor
Utility class for working with Ref
annotated fields
- Author:
- mh124079
RefFieldDescriptor
public RefFieldDescriptor(Field f,
Ref l,
Class<?> t)
setPropertyValue
public void setPropertyValue(Object instance,
URI value)
getLinkStyle
public Ref.Style getLinkStyle()
- Description copied from interface:
RefDescriptor
- Get the style
- Specified by:
getLinkStyle
in interface RefDescriptor
- Returns:
- the style
getLinkTemplate
public String getLinkTemplate()
- Description copied from interface:
RefDescriptor
- Get the link template, either directly from the value() or from the
- Specified by:
getLinkTemplate
in interface RefDescriptor
- Returns:
- the link template
getLinkTemplate
public static String getLinkTemplate(Ref link)
getBinding
public String getBinding(String name)
- Description copied from interface:
RefDescriptor
- Get the binding as an EL expression for a particular URI template parameter
- Specified by:
getBinding
in interface RefDescriptor
- Returns:
- the EL binding
getCondition
public String getCondition()
- Description copied from interface:
RefDescriptor
- Get the condition.
- Specified by:
getCondition
in interface RefDescriptor
- Returns:
- the condition
Copyright © 2013 Oracle Corporation. All Rights Reserved.