Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Collation


    private FunctionResult ignoreCaseDifferencesFunctionResult;
   
    @Override
    protected void initCollationService()
    {
        final Collation annotation = context( PropertyDef.class ).getAnnotation( Collation.class );
        Function ignoreCaseDifferencesFunction;
       
        try
        {
            ignoreCaseDifferencesFunction = ExpressionLanguageParser.parse( annotation.ignoreCaseDifferences() );
            ignoreCaseDifferencesFunction = FailSafeFunction.create( ignoreCaseDifferencesFunction, Boolean.class, false );
        }
        catch( Exception e )
        {
            Sapphire.service( LoggingService.class ).log( e );
View Full Code Here


        {
            final ValueProperty property = context.find( ValueProperty.class );
           
            if( property != null )
            {
                final Collation collation = property.getAnnotation( Collation.class );
               
                if( collation != null )
                {
                    return collation.global() ||
                           collation.ignoreCaseDifferences().equalsIgnoreCase( "true" ) ||
                           collation.ignoreCaseDifferences().equalsIgnoreCase( "false" );
                }
            }
           
            return false;
        }
View Full Code Here

        {
            final ValueProperty property = context.find( ValueProperty.class );
           
            if( property != null )
            {
                final Collation collation = property.getAnnotation( Collation.class );
               
                if( collation != null )
                {
                    return ! collation.global() &&
                           ! collation.ignoreCaseDifferences().equalsIgnoreCase( "true" ) &&
                           ! collation.ignoreCaseDifferences().equalsIgnoreCase( "false" );
                }
            }
           
            return false;
        }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.Collation

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.