Examples of ValueProperty


Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && property.hasAnnotation( NumericRange.class ) && Number.class.isAssignableFrom( property.getTypeClass() ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && Path.class.isAssignableFrom( property.getTypeClass() ) && property.hasAnnotation( ModelRelativePath.class ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && Enum.class.isAssignableFrom( property.getTypeClass() ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && ! String.class.isAssignableFrom( property.getTypeClass() ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return property != null && property.hasAnnotation( FileExtensions.class );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && property.hasAnnotation( AbsolutePath.class ) && Path.class.isAssignableFrom( property.getTypeClass() ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

        final Value<Comparable> value = context( Value.class );
        final Comparable val = (Comparable) value.content( true );
       
        if( val != null )
        {
            final ValueProperty property = value.definition();
           
            if( this.min != null && val.compareTo( this.min ) < 0 )
            {
                final String msg = smallerThanMinimumMessage.format( val, normalizeForDisplay( property, this.min ) );
                return Status.createErrorStatus( msg );
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && property.hasAnnotation( Unique.class ) );
        }
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    {
        final ReferenceValue<?,?> reference = context( ReferenceValue.class );
       
        if( reference.target() == null && reference.text() != null )
        {
            final ValueProperty property = reference.definition();
            final String label = property.getLabel( true, CapitalizationType.NO_CAPS, false );
            final String str = reference.text();
            final String msg = message.format( label, str );
            return Status.createErrorStatus( msg );
        }
       
View Full Code Here

Examples of org.eclipse.sapphire.ValueProperty

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final ValueProperty property = context.find( ValueProperty.class );
            return ( property != null && property.hasAnnotation( Reference.class ) && property.hasAnnotation( MustExist.class ) );
        }
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.