Package javax.validation

Examples of javax.validation.GroupSequence


        getDefaultGroupSequenceProvider( beanClass )
    );
  }

  private List<Class<?>> getDefaultGroupSequence(Class<?> beanClass) {
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    return groupSequenceAnnotation != null ? Arrays.asList( groupSequenceAnnotation.value() ) : null;
  }
View Full Code Here


        getDefaultGroupSequenceProvider( beanClass )
    );
  }

  private List<Class<?>> getDefaultGroupSequence(Class<?> beanClass) {
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    return groupSequenceAnnotation != null ? Arrays.asList( groupSequenceAnnotation.value() ) : null;
  }
View Full Code Here

    }
    else {
      processedSequences.add( sequenceClass );
    }
    List<Group> resolvedSequenceGroups = new ArrayList<Group>();
    GroupSequence sequenceAnnotation = sequenceClass.getAnnotation( GroupSequence.class );
    Class<?>[] sequenceArray = sequenceAnnotation.value();
    for ( Class<?> clazz : sequenceArray ) {
      if ( isGroupSequence( clazz ) ) {
        Sequence tmpSequence = resolveSequence( clazz, processedSequences );
        addGroups( resolvedSequenceGroups, tmpSequence.getComposingGroups() );
      }
View Full Code Here

        getDefaultGroupSequenceProvider( beanClass )
    );
  }

  private List<Class<?>> getDefaultGroupSequence(Class<?> beanClass) {
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    return groupSequenceAnnotation != null ? Arrays.asList( groupSequenceAnnotation.value() ) : null;
  }
View Full Code Here

    private void processGroupSequence(Class<?> beanClass, MetaBean metabean) {
        processGroupSequence(beanClass, metabean, JsrFeatures.Bean.GROUP_SEQUENCE);
    }

    private void processGroupSequence(Class<?> beanClass, MetaBean metabean, String key) {
        GroupSequence annotation = beanClass.getAnnotation(GroupSequence.class);
        List<Group> groupSeq = metabean.getFeature(key);
        if (groupSeq == null) {
            groupSeq = metabean.initFeature(key, new ArrayList<Group>(annotation == null ? 1 : annotation.value().length));
        }
        Class<?>[] groupClasses = factoryContext.getFactory().getDefaultSequence(beanClass);
        if (groupClasses == null || groupClasses.length == 0) {
            if (annotation == null) {
                groupSeq.add(Group.DEFAULT);
                return;
            } else {
                groupClasses = annotation.value();
            }
        }
        boolean containsDefault = false;
        for (final Class<?> groupClass : groupClasses) {
            if (groupClass.getName().equals(beanClass.getName())) {
View Full Code Here

    }
    else {
      processedSequences.add( group );
    }
    List<Group> resolvedGroupSequence = new ArrayList<Group>();
    GroupSequence sequenceAnnotation = group.getAnnotation( GroupSequence.class );
    Class<?>[] sequenceArray = sequenceAnnotation.value();
    for ( Class<?> clazz : sequenceArray ) {
      if ( clazz.getAnnotation( GroupSequence.class ) == null ) {
        resolvedGroupSequence.add( new Group( clazz, group ) );
      }
      else {
View Full Code Here

   * Checks whether there is a default group sequence defined for this class.
   * See HV-113.
   */
  private void initDefaultGroupSequence() {
    List<Class<?>> groupSequence = new ArrayList<Class<?>>();
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    if ( groupSequenceAnnotation == null ) {
      groupSequence.add( beanClass );
    }
    else {
      groupSequence.addAll( Arrays.asList( groupSequenceAnnotation.value() ) );
    }
    setDefaultGroupSequence( groupSequence );
  }
View Full Code Here

        getDefaultGroupSequenceProvider( beanClass )
    );
  }

  private List<Class<?>> getDefaultGroupSequence(Class<?> beanClass) {
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    return groupSequenceAnnotation != null ? Arrays.asList( groupSequenceAnnotation.value() ) : null;
  }
View Full Code Here

        getDefaultGroupSequenceProvider( beanClass )
    );
  }

  private List<Class<?>> getDefaultGroupSequence(Class<?> beanClass) {
    GroupSequence groupSequenceAnnotation = beanClass.getAnnotation( GroupSequence.class );
    return groupSequenceAnnotation != null ? Arrays.asList( groupSequenceAnnotation.value() ) : null;
  }
View Full Code Here

    }
    else {
      processedSequences.add( sequenceClass );
    }
    List<Group> resolvedSequenceGroups = new ArrayList<Group>();
    GroupSequence sequenceAnnotation = sequenceClass.getAnnotation( GroupSequence.class );
    Class<?>[] sequenceArray = sequenceAnnotation.value();
    for ( Class<?> clazz : sequenceArray ) {
      if ( isGroupSequence( clazz ) ) {
        Sequence tmpSequence = resolveSequence( clazz, processedSequences );
        addGroups( resolvedSequenceGroups, tmpSequence.getComposingGroups() );
      }
View Full Code Here

TOP

Related Classes of javax.validation.GroupSequence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.