Package org.apache.isis.core.metamodel.facets.value.date

Examples of org.apache.isis.core.metamodel.facets.value.date.DateValueFacet


    }

    protected void process(final Request request, final ObjectAdapter object, final ObjectAssociation field, final Format format, final String name, final Scope scope) {
        final ObjectAdapter fieldReference = field.get(object);
        if (format != null && fieldReference.isValue()) {
            final DateValueFacet facet = fieldReference.getSpecification().getFacet(DateValueFacet.class);
            final Date date = facet.dateValue(fieldReference);
            final String value = format.format(date);
            request.appendDebug("    " + object + " -> " + value);
            request.getContext().addVariable(name, Request.getEncoder().encoder(value), scope);
        } else {
            final String source = fieldReference == null ? "" : request.getContext().mapObject(fieldReference, scope);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.value.date.DateValueFacet

Copyright © 2018 www.massapicom. 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.