Examples of validation()


Examples of org.apache.isis.core.progmodel.facets.properties.validate.regexannot.RegExFacetAnnotationForProperty.validation()

        final Facet facet = facetedMethod.getFacet(RegExFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof RegExFacetAnnotationForProperty);
        final RegExFacetAnnotationForProperty regExFacet = (RegExFacetAnnotationForProperty) facet;
        assertEquals("^A.*", regExFacet.validation());
        assertEquals(false, regExFacet.caseSensitive());
    }

    public void testRegExAnnotationPickedUpOnActionParameter() {
        final RegExFacetAnnotationForParameterFacetFactory facetFactory = new RegExFacetAnnotationForParameterFacetFactory();
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.properties.validate.regexannot.RegExFacetAnnotationForProperty.validation()

        final Facet facet = facetedMethod.getFacet(RegExFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof RegExFacetAnnotationForProperty);
        final RegExFacetAnnotationForProperty regExFacet = (RegExFacetAnnotationForProperty) facet;
        assertEquals("^A.*", regExFacet.validation());
        assertEquals(false, regExFacet.caseSensitive());
    }

    public void testRegExAnnotationPickedUpOnActionParameter() {
        RegExFacetAnnotationForParameterFacetFactory facetFactory = new RegExFacetAnnotationForParameterFacetFactory();
View Full Code Here

Examples of org.eclipse.sapphire.Element.validation()

            {
                final Element child = ( (ElementHandle<?>) this.property ).content();
               
                if( child != null )
                {
                    factory.merge( child.validation() );
                }
            }
        }
       
        for( SapphirePart relatedContentPart : this.relatedContentParts )
View Full Code Here

Examples of org.eclipse.sapphire.Element.validation()

    DiagramNodePart nodePart = markerPart.nearest(DiagramNodePart.class);
    ValidationMarkerSize size = markerPart.getSize();
    Image image = null;
       
    Element model = nodePart.getModelElement();   
    Status status = model.validation();
    if (status.severity() != Status.Severity.OK)
    {
      if (status.severity() == Status.Severity.WARNING)
      {
        if (size == ValidationMarkerSize.SMALL)
View Full Code Here

Examples of org.eclipse.sapphire.Element.validation()

       
        boolean contribute = false;
       
        if( property == null )
        {
          contribute = ! element.validation().ok();
        }
        else if( ! property.validation().ok() )
        {
            contribute = true;
        }
View Full Code Here

Examples of org.eclipse.sapphire.Property.validation()

       
        if( property == null )
        {
          contribute = ! element.validation().ok();
        }
        else if( ! property.validation().ok() )
        {
            contribute = true;
        }
        else
        {
View Full Code Here

Examples of org.eclipse.sapphire.ui.SapphirePart.validation()

                if( p == null )
                {
                    throw new IllegalStateException();
                }
               
                return p.validation();
            }
           
            @Override
            public void dispose()
            {
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.MasterDetailsContentNodePart.validation()

               
                final MasterDetailsContentNodePart node = getNode( event );
               
                if( node != null )
                {
                    res = ! node.validation().ok();
                }

                return res;
            }
           
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.MasterDetailsContentNodePart.validation()

                parent.setLayout( glayout( 1 ) );
               
                SapphireFormText text = new SapphireFormText( parent, SWT.NO_FOCUS );
                text.setLayoutData( gdfill() );
               
                final org.eclipse.sapphire.modeling.Status validation = node.validation();
                final List<org.eclipse.sapphire.modeling.Status> items = gather( validation );
               
                final StringBuffer buffer = new StringBuffer();
                buffer.append( "<form>" );
               
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.PropertiesViewContributionPart.validation()

        final Status.CompositeStatusFactory factory = Status.factoryForComposite();
        factory.merge(super.computeValidation());
        PropertiesViewContributionPart propertiesPage = getPropertiesViewContribution();
        if (propertiesPage != null)
        {
          factory.merge(propertiesPage.validation());
        }
       
        return factory.create();
    }
   
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.