Examples of title()


Examples of org.apache.cxf.jaxrs.ext.Description.title()

                sb.append("<doc");
                if (d.lang().length() > 0) {
                    sb.append(" xml:lang=\"" + d.lang() + "\"");
                }
                if (d.title().length() > 0) {
                    sb.append(" title=\"" + d.title() + "\"");
                }
                sb.append(">");
                if (d.value().length() > 0) {
                    sb.append(d.value());
                } else if (d.docuri().length() > 0) {
View Full Code Here

Examples of org.apache.isis.applib.value.Color.title()

    }

    @Override
    public String titleString(final Object object, final Localization localization) {
        final Color color = (Color) object;
        return color.title();
    }

    @Override
    public String titleStringWithMask(final Object object, final String usingMask) {
        final Color color = (Color) object;
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.title.TitleFacet.title()

        if(valueAdapter == null) {
            representation.mapPut("value", NullNode.getInstance());
        } else {
            final TitleFacet titleFacet = spec.getFacet(TitleFacet.class);
            final String title = titleFacet.title(valueAdapter, rendererContext.getLocalization());
           
            final LinkBuilder valueLinkBuilder = DomainObjectReprRenderer.newLinkToBuilder(rendererContext, Rel.VALUE, valueAdapter).withTitle(title);
            if(eagerlyRender) {
                final DomainObjectReprRenderer renderer = new DomainObjectReprRenderer(rendererContext, getLinkFollowSpecs(), JsonRepresentation.newMap());
                renderer.with(valueAdapter);
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.title.TitleFacet.title()

    public static Object valueOrRef(final RendererContext resourceContext, final ObjectAdapter objectAdapter, final ObjectSpecification objectSpec) {
        if(objectAdapter.isValue()) {
            return JsonValueEncoder.asObject(objectAdapter);
        }
        final TitleFacet titleFacet = objectSpec.getFacet(TitleFacet.class);
        final String title = titleFacet.title(objectAdapter, resourceContext.getLocalization());
        return DomainObjectReprRenderer.newLinkToBuilder(resourceContext, Rel.VALUE, objectAdapter).withTitle(title).build();
    }

   
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.title.annotation.TitleFacetViaTitleAnnotation.title()

                allowing(mockAdapterManager).adapterFor("Object");
                inSequence(sequence);
            }
        });

        final String title = facet.title(mockObjectAdapter, null);
        assertThat(title, is("Normal Domain Object"));
    }

    @Test
    public void titleThrowsException() {
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.title.parser.TitleFacetUsingParser.title()

    @Override
    public String title(final ObjectAdapter object, final Localization localization) {
        final String mask = maskFacet.value();
        final TitleFacetUsingParser titleFacetUsingParser = (TitleFacetUsingParser) underlyingTitleFacet.getUnderlyingFacet();
        if (titleFacetUsingParser != null) {
            final String titleString = titleFacetUsingParser.title(object, mask);
            return titleString;
        } else {
            return underlyingTitleFacet.title(object, localization);
        }
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.object.title.TitleFacetUsingParser.title()

    @Override
    public String title(final ObjectAdapter object, final Localization localization) {
        final String mask = maskFacet.value();
        final TitleFacetUsingParser titleFacetUsingParser = (TitleFacetUsingParser) underlyingTitleFacet.getUnderlyingFacet();
        if (titleFacetUsingParser != null) {
            final String titleString = titleFacetUsingParser.title(object, mask);
            return titleString;
        } else {
            return underlyingTitleFacet.title(object, localization);
        }
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.object.title.annotation.TitleFacetViaTitleAnnotation.title()

                allowing(mockAdapterManager).adapterFor("Object");
                inSequence(sequence);
            }
        });

        final String title = facet.title(mockObjectAdapter, null);
        assertThat(title, is("Normal Domain Object"));
    }

    @Test
    public void titleThrowsException() {
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.object.title.annotation.TitleFacetViaTitleAnnotation.title()

                allowing(mockObjectAdapter).getObject();
                will(returnValue(screwedPojo));
            }
        });

        final String title = facet.title(mockObjectAdapter, null);
        assertThat(title, is("Failed Title"));
    }

}
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.object.title.annotation.TitleFacetViaTitleAnnotation.title()

            {
                allowing(mockObjectAdapter).getObject();
                will(returnValue(customer));
            }
        });
        final String title = titleFacetViaTitleAnnotation.title(mockObjectAdapter, mockLocalizationProvider.getLocalization());
        assertThat(title, is("titleElement1. titleElement3,titleElement2"));
    }

    public static class Customer3 {
    }
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.