org.apache.bval.jsr303.extensions
Class ReturnAccess

java.lang.Object
  extended by org.apache.bval.util.AccessStrategy
      extended by org.apache.bval.jsr303.extensions.ReturnAccess

public class ReturnAccess
extends AccessStrategy

Implementation of AccessStrategy for method return values.

Author:
Carlos Vara

Constructor Summary
ReturnAccess(Type returnType)
          Create a new ReturnAccess instance.
 
Method Summary
 Object get(Object instance)
          
 ElementType getElementType()
          
 Type getJavaType()
          
 String getPropertyName()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnAccess

public ReturnAccess(Type returnType)
Create a new ReturnAccess instance.

Parameters:
returnType -
Method Detail

get

public Object get(Object instance)

Specified by:
get in class AccessStrategy

getElementType

public ElementType getElementType()

Specified by:
getElementType in class AccessStrategy

getJavaType

public Type getJavaType()

Specified by:
getJavaType in class AccessStrategy

getPropertyName

public String getPropertyName()

Specified by:
getPropertyName in class AccessStrategy


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.