Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Serialization.alternative()


    {
        final Serialization serialization = context( ValueProperty.class ).getAnnotation( Serialization.class );
       
        facts.add( fact.format( serialization.primary() ) );
       
        for( final String alternative : serialization.alternative() )
        {
            facts.add( fact.format( alternative ) );
        }
    }
   
View Full Code Here


        final Serialization serialization = context( ValueProperty.class ).getAnnotation( Serialization.class );
        final ListFactory<DateFormat> formatsListFactory = ListFactory.start();
       
        formatsListFactory.add( new SimpleDateFormat( serialization.primary() ) );
       
        for( final String alternative : serialization.alternative() )
        {
            formatsListFactory.add( new SimpleDateFormat( alternative ) );
        }
       
        this.formats = formatsListFactory.result();
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.