Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
 * JBoss, Home of Professional Open Source
 * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.validator.internal.metadata.aggregated;
An aggregated view of the constraint related meta data for a given bean/type element and all the elements in the inheritance hierarchy which it overrides or implements.

Author(s):
Gunnar Morling
public interface ConstraintMetaData extends Iterable<MetaConstraint<?>> {

The kind of a ConstraintMetaData. Can be used to determine the type of meta data when traversing over a collection of constraint meta data objects.

Author(s):
Gunnar Morling
	public static enum ConstraintMetaDataKind {
		METHOD, PROPERTY, PARAMETER
	}

Returns the name of this meta data object.

Returns:
This meta data object's name.
Returns the data type of this meta data object, e.g. the type of a bean property or the return type of a method.

Returns:
This meta data object's type.
	Class<?> getType();

Returns the kind of this meta data object.

Returns:
The kind of this meta data object.
Whether this meta data object is marked for cascaded validation or not.

Returns:
True if this object is marked for cascaded validation, false otherwise.
	boolean isCascading();

Whether this meta data object is constrained by any means or not.

Returns:
True if this object is marked for cascaded validation or has any constraints, false otherwise.
	boolean isConstrained();

Returns this meta data object's corresponding representation in the descriptor model.

Parameters:
defaultGroupSequenceRedefined Whether the bean hosting the represented element has a redefined default group sequence or not.
defaultGroupSequence The default group sequence of the bean hosting the represented element.
Returns:
This meta data object's corresponding descriptor model representation. Implementations should return a specific sub type of javax.validation.metadata.ElementDescriptor.
	ElementDescriptor asDescriptor(boolean defaultGroupSequenceRedefinedList<Class<?>> defaultGroupSequence);
New to GrepCode? Check out our FAQ X