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)
          Get the value from the given instance.
 ElementType getElementType()
          Get the Java program ElementType used by this AccessStrategy to determine property values.
 Type getJavaType()
          Get the type of the property
 String getPropertyName()
          Get a name representative of this property.
 
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)
Get the value from the given instance.

Specified by:
get in class AccessStrategy
Returns:
the value

getElementType

public ElementType getElementType()
Get the Java program ElementType used by this AccessStrategy to determine property values.

Specified by:
getElementType in class AccessStrategy
Returns:
ElementType

getJavaType

public Type getJavaType()
Get the type of the property

Specified by:
getJavaType in class AccessStrategy
Returns:
Type

getPropertyName

public String getPropertyName()
Get a name representative of this property.

Specified by:
getPropertyName in class AccessStrategy
Returns:
String


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