com.sun.jersey.server.linking.impl
Class RefFieldDescriptor

java.lang.Object
  extended by com.sun.jersey.server.linking.impl.FieldDescriptor
      extended by 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

Field Summary
 
Fields inherited from class com.sun.jersey.server.linking.impl.FieldDescriptor
field
 
Constructor Summary
RefFieldDescriptor(Field f, Ref l, Class<?> t)
           
 
Method Summary
 String getBinding(String name)
          Get the binding as an EL expression for a particular URI template parameter
 String getCondition()
          Get the condition.
 Ref.Style getLinkStyle()
          Get the style
 String getLinkTemplate()
          Get the link template, either directly from the value() or from the
static String getLinkTemplate(Ref link)
           
 void setPropertyValue(Object instance, URI value)
           
 
Methods inherited from class com.sun.jersey.server.linking.impl.FieldDescriptor
equals, getFieldName, getFieldValue, hashCode, setAccessibleField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefFieldDescriptor

public RefFieldDescriptor(Field f,
                          Ref l,
                          Class<?> t)
Method Detail

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.