org.hibernate.validator.metadata
Class AggregatedMethodMetaData.Builder

java.lang.Object
  extended by org.hibernate.validator.metadata.AggregatedMethodMetaData.Builder
Enclosing class:
AggregatedMethodMetaData

public static class AggregatedMethodMetaData.Builder
extends Object

Creates new AggregatedMethodMetaData instances.

Author:
Gunnar Morling, Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Constructor Summary
AggregatedMethodMetaData.Builder(MethodMetaData metaData)
          Creates a new builder based on the given method meta data.
 
Method Summary
 boolean accepts(MethodMetaData metaData)
          Whether the given method can be added to this builder or not.
 void addMetaData(MethodMetaData metaData)
          Adds the given method to this builder.
 AggregatedMethodMetaData build()
          Creates a new, read-only AggregatedMethodMetaData object from this builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatedMethodMetaData.Builder

public AggregatedMethodMetaData.Builder(MethodMetaData metaData)
Creates a new builder based on the given method meta data.

Parameters:
metaData - The base method for this builder. This is the lowest method with a given signature within a type hierarchy.
Method Detail

accepts

public boolean accepts(MethodMetaData metaData)
Whether the given method can be added to this builder or not. This is the case if the given method has the same signature as this builder's base method (and originates from the same type hierarchy, which currently is not checked).

Parameters:
metaData - The method of interest.
Returns:
True, if the given method can be added to this builder, false otherwise.

addMetaData

public void addMetaData(MethodMetaData metaData)
Adds the given method to this builder. It must be checked with accepts(MethodMetaData) before, whether this is allowed or not.

Parameters:
metaData - The meta data to add.

build

public AggregatedMethodMetaData build()
Creates a new, read-only AggregatedMethodMetaData object from this builder.

Returns:
An AggregatedMethodMetaData object


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved