Package org.apache.isis.core.metamodel.facets.all.help

Examples of org.apache.isis.core.metamodel.facets.all.help.HelpFacet


        return facet.value();
    }

    @Override
    public String getHelp() {
        final HelpFacet facet = getFacet(HelpFacet.class);
        return facet.value();
    }
View Full Code Here


        field.setDescription(param.getDescription());
        field.setDataType(param.getSpecification().getShortIdentifier());
        if (param instanceof ObjectMember) {
            field.setHelpReference(((ObjectMember) param).getHelp());
        } else {
            final HelpFacet helpFacet = param.getFacet(HelpFacet.class);
            final String value = helpFacet.value();
            field.setHelpReference(value);
        }
        field.setRequired(isRequired);
        field.setHidden(false);
View Full Code Here

     * help is typically a reference (eg a URL) and so should not default to a
     * textual value if not set up
     */
    @Override
    public String getHelp() {
        final HelpFacet helpFacet = getFacet(HelpFacet.class);
        return helpFacet == null ? null : helpFacet.value();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.all.help.HelpFacet

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.