Examples of PropertyDetails


Examples of com.volantis.styling.properties.PropertyDetails

            StyleProperty property, StyleValue inputValue,
            StatusUsage usage,
            PropertyValues inputValues,
            StyleValue deviceValue) {

        final PropertyDetails details = property.getStandardDetails();
        StyleValue initialValue = finder.getInitialValue(this.inputValues, details);
        if (inputValue == OptimizerHelper.ANY ||
                inputValue.equals(initialValue)) {
            return PropertyStatus.CLEARABLE;
        }
View Full Code Here

Examples of com.volantis.styling.properties.PropertyDetails

    public PropertyStatus checkStatus(
            StyleProperty property, StyleValue inputValue,
            StatusUsage usage, PropertyValues inputValues,
            StyleValue deviceValue) {

        PropertyDetails details = detailsSet.getPropertyDetails(property);
        if (details == null) {
            // The property is not supported on the target device so assume
            // that it can just be discarded.
            return PropertyStatus.CLEARABLE;
        }

        final boolean initialKnown =
                (details.getInitialValueAccuracy() ==
                InitialValueAccuracy.KNOWN);

        // The property can be cleared if it will have no effect on the styling
        // on the device. In general that means that it can be cleared if its
        // value matches the value that the device would use in the event that
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        UIComponent uiComponent = (UIComponent) object;

        logger.finest("start extracting meta-data of " + uiComponent.getClass().getName());

        PropertyDetails propertyDetails = ExtValUtils.getELHelper().getPropertyDetailsOfValueBinding(uiComponent);

        if (propertyDetails == null)
        {
            return new DefaultPropertyInformation();
        }

        /*
         * get bean class and property name
         */
        Class entityClass = ProxyUtils.getUnproxiedClass(propertyDetails.getBaseObject().getClass());

        PropertyInformation propertyInformation = getPropertyInformation(entityClass, propertyDetails);

        logger.finest("extract finished");

View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        ValidationStrategy validationStrategy;
        MetaDataTransformer metaDataTransformer;

        Map<String, Object> results = new HashMap<String, Object>();

        PropertyDetails propertyDetails;
        FacesContext facesContext = FacesContext.getCurrentInstance();
        for (String targetExpression : targetExpressions)
        {
            propertyDetails = ExtValUtils
                .createPropertyDetailsForNewTarget(metaDataEntry, targetExpression);
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        String[] targetExpressions = metaDataEntry.getValue(JoinValidation.class).value();

        ValidationStrategy validationStrategy;

        PropertyDetails propertyDetails;
        for (String targetExpression : targetExpressions)
        {
            propertyDetails = ExtValUtils
                .createPropertyDetailsForNewTarget(metaDataEntry, targetExpression);
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        if (!(object instanceof PropertyDetails))
        {
            throw new IllegalStateException(object.getClass() + " is not a " + PropertyDetails.class.getName());
        }

        PropertyDetails propertyDetails = (PropertyDetails)object;

        Class entityClass = ProxyUtils.getUnproxiedClass(propertyDetails.getBaseObject().getClass());

        //TODO test with complex components
        propertyInformation.setInformation(
            PropertyInformationKeys.PROPERTY_DETAILS, propertyDetails);

        /*
         * find and add annotations
         */
        PropertyStorage storage = ReflectionUtils.getPropertyStorage();

        addPropertyAccessAnnotations(storage, entityClass, propertyDetails.getProperty(), propertyInformation);
        addFieldAccessAnnotations(storage, entityClass, propertyDetails.getProperty(), propertyInformation);

        return propertyInformation;
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        }
    }

    private MetaDataEntry[] extractDynamicMetaData(MetaDataEntry metaDataEntry, String target)
    {
        PropertyDetails propertyDetails = ExtValUtils.createPropertyDetailsForNewTarget(metaDataEntry, target);

        Class targetClass = ProxyUtils.getUnproxiedClass(propertyDetails.getBaseObject().getClass());
        return new StaticSyntaxMetaDataExtractor().extract(
                targetClass, propertyDetails.getProperty()).getMetaDataEntries();
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        extends PropertyValidationModuleValidationInterceptor
{
    @Override
    protected Map<String, Object> getTransformedMetaDataFor(FacesContext facesContext, UIComponent uiComponent)
    {
        PropertyDetails originalPropertyDetail = getELHelper().getPropertyDetailsOfValueBinding(uiComponent);

        PropertyInformation propertyInformation = extractFromMappedConstraintSource(originalPropertyDetail);

        if (propertyInformation == null)
        {
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

    protected void processFieldValidation(FacesContext facesContext,
                                          UIComponent uiComponent,
                                          Object convertedObject,
                                          PropertyInformation propertyInformation)
    {
        PropertyDetails originalPropertyDetail = ExtValUtils.getPropertyDetails(propertyInformation);

        propertyInformation = extractFromMappedConstraintSource(originalPropertyDetail);

        if (propertyInformation != null)
        {
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.property.PropertyDetails

        }
    }

    private PropertyInformation extractFromMappedConstraintSource(PropertyDetails originalPropertyDetail)
    {
        PropertyDetails constraintSourcePropertyDetails =
                resolveMappedConstraintSourceFor(originalPropertyDetail.getKey(),
                                                 originalPropertyDetail.getBaseObject().getClass(),
                                                 originalPropertyDetail.getProperty());

        if (constraintSourcePropertyDetails == null)
        {
            return null;
        }

        return ExtValAnnotationUtils.extractAnnotations(
                (Class) constraintSourcePropertyDetails.getBaseObject(), constraintSourcePropertyDetails);
    }
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.