Package org.eclipse.sapphire.modeling.annotations

Examples of org.eclipse.sapphire.modeling.annotations.CountConstraint.min()


    @Override
    protected void facts( final SortedSet<String> facts )
    {
        final CountConstraint constraint = context( PropertyDef.class ).getAnnotation( CountConstraint.class );
        final int min = constraint.min();
        final int max = constraint.max();
       
        if( min == 1 )
        {
            facts.add( atLeastOneStatement.text() );
View Full Code Here


            final ListProperty property = context.find( ListProperty.class );
           
            if( property != null )
            {
                final CountConstraint constraint = property.getAnnotation( CountConstraint.class );
                return ( constraint != null && ( constraint.min() > 0 || constraint.max() < Integer.MAX_VALUE ) );
            }
           
            return false;
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.