Package org.apache.isis.core.metamodel.facets.propparam.choices

Examples of org.apache.isis.core.metamodel.facets.propparam.choices.ChoicesFacet


    @Override
    public Object[] getChoices(final ObjectAdapter adapter, final SpecificationLoader specificationLookup) {
        final FacetHolder facetHolder = getFacetHolder();
        final FacetedMethod noap = (FacetedMethod) facetHolder;
        final ObjectSpecification noSpec = getSpecification(noap.getType());
        final ChoicesFacet choicesFacet = noSpec.getFacet(ChoicesFacet.class);
        if (choicesFacet == null) {
            return new Object[0];
        }
        return choicesFacet.getChoices(adapter);
    }
View Full Code Here


    @Override
    public Object[] getChoices(final ObjectAdapter adapter, final List<ObjectAdapter> arguments) {
        final FacetHolder facetHolder = getFacetHolder();
        final TypedHolder paramPeer = (TypedHolder) facetHolder;
        final ObjectSpecification noSpec = getSpecification(paramPeer.getType());
        final ChoicesFacet choicesFacet = noSpec.getFacet(ChoicesFacet.class);
        if (choicesFacet == null) {
            return new Object[0];
        }
        return choicesFacet.getChoices(adapter);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.propparam.choices.ChoicesFacet

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.