Examples of dateValue()


Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        if (dateField == null) {
            return null;
        }
        final DateValueFacet facet = dateField.getSpecification().getFacet(DateValueFacet.class);
        final ObjectAdapter field = dateField.get(element);
        final Date date = facet.dateValue(field);
        return date;
    }

    private ObjectAssociation findDate(final ObjectAdapter adapter) {
        final ObjectSpecification spec = adapter.getSpecification();
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        date = Calendar.getInstance();
        final ObjectAdapter dateAdapter = ((TextParseableContent) getContent()).getAdapter();
        if (dateAdapter != null) {
            final DateValueFacet facet = dateAdapter.getSpecification().getFacet(DateValueFacet.class);
            currentDate = Calendar.getInstance();
            final Date dateValue = facet.dateValue(dateAdapter);
            currentDate.setTime(dateValue);
            clearTime(currentDate);
            date.setTime(dateValue);
        }
        clearTime(date);
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

            }

            // otherwise, see if date and if so compare as such
            final DateValueFacet dateValueFacet = resultAdapter.getSpecification().getFacet(DateValueFacet.class);
            if (dateValueFacet != null) {
                final Date resultDate = dateValueFacet.dateValue(resultAdapter);

                final DateParser dateParser = performContext.getDateParser();
                final Date expectedDate = dateParser.parse(expected);
                if (expectedDate != null) {
                    if (expectedDate.compareTo(resultDate) == 0) {
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        date = Calendar.getInstance();
        final ObjectAdapter dateAdapter = ((TextParseableContent) getContent()).getAdapter();
        if (dateAdapter != null) {
            final DateValueFacet facet = dateAdapter.getSpecification().getFacet(DateValueFacet.class);
            currentDate = Calendar.getInstance();
            final Date dateValue = facet.dateValue(dateAdapter);
            currentDate.setTime(dateValue);
            clearTime(currentDate);
            date.setTime(dateValue);
        }
        clearTime(date);
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

    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.getResolveState().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

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        if (dateField == null) {
            return null;
        }
        final DateValueFacet facet = dateField.getSpecification().getFacet(DateValueFacet.class);
        final ObjectAdapter field = dateField.get(element);
        final Date date = facet.dateValue(field);
        return date;
    }

    private ObjectAssociation findDate(final ObjectAdapter adapter) {
        final ObjectSpecification spec = adapter.getSpecification();
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        if (dateField == null) {
            return null;
        }
        final DateValueFacet facet = dateField.getSpecification().getFacet(DateValueFacet.class);
        final ObjectAdapter field = dateField.get(element);
        final Date date = facet.dateValue(field);
        return date;
    }

    private ObjectAssociation findDate(final ObjectAdapter adapter) {
        final ObjectSpecification spec = adapter.getSpecification();
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        date = Calendar.getInstance();
        final ObjectAdapter dateAdapter = ((TextParseableContent) getContent()).getAdapter();
        if (dateAdapter != null) {
            final DateValueFacet facet = dateAdapter.getSpecification().getFacet(DateValueFacet.class);
            currentDate = Calendar.getInstance();
            final Date dateValue = facet.dateValue(dateAdapter);
            currentDate.setTime(dateValue);
            clearTime(currentDate);
            date.setTime(dateValue);
        }
        clearTime(date);
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

        date = Calendar.getInstance();
        final ObjectAdapter dateAdapter = ((TextParseableContent) getContent()).getAdapter();
        if (dateAdapter != null) {
            final DateValueFacet facet = dateAdapter.getSpecification().getFacet(DateValueFacet.class);
            currentDate = Calendar.getInstance();
            final Date dateValue = facet.dateValue(dateAdapter);
            currentDate.setTime(dateValue);
            clearTime(currentDate);
            date.setTime(dateValue);
        }
        clearTime(date);
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.value.date.DateValueFacet.dateValue()

    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.getResolveState().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
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.