Package org.eclipse.sapphire

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


                    def = buf.toString();
                }
               
                if( def == null && serialization != null )
                {
                    def = serialization.primary();
                }
               
                return def;
            }
        };
View Full Code Here


    @Override
    protected void facts( final SortedSet<String> facts )
    {
        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

    protected void init()
    {
        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 ) );
        }
View Full Code Here

    @Override
    protected void init()
    {
        final Serialization serialization = context( ValueProperty.class ).getAnnotation( Serialization.class );
        this.format = new SimpleDateFormat( serialization.primary() );
    }
   
    @Override
    public synchronized String convert( final Date date )
    {
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.