Package org.apache.isis.core.metamodel.spec.feature

Examples of org.apache.isis.core.metamodel.spec.feature.ParseableEntryActionParameter


            descriptions[i] = parameters.get(i).getDescription();
            fieldSpecifications[i] = parameters.get(i).getSpecification();
            optional[i] = parameters.get(i).isOptional();

            if (parameters.get(i).getSpecification().isParseable()) {
                final ParseableEntryActionParameter valueParameter = (ParseableEntryActionParameter) parameters.get(i);
                noLines[i] = valueParameter.getNoLines();
                wraps[i] = valueParameter.canWrap();
                maxLength[i] = valueParameter.getMaximumLength();
                typicalLength[i] = valueParameter.getTypicalLineLength();
            }

        }
       
        // String[] names = action.getParameterNames();
View Full Code Here


        for (int i = 0; i < parameters.length; i++) {
            final List<ObjectActionParameter> parameters2 = action.getParameters();
            final ObjectAdapter adapter = parameters[i];
            final ObjectSpecification specification = parameters2.get(i).getSpecification();
            if (specification.isParseable()) {
                final ParseableEntryActionParameter parseableEntryActionParameter = (ParseableEntryActionParameter) parameters2.get(i);
                parameterContents[i] = new TextParseableParameterImpl(parseableEntryActionParameter, adapter, options[i], i, this);
            } else {
                parameterContents[i] = new ObjectParameterImpl((OneToOneActionParameter) parameters2.get(i), adapter, options[i], i, this);
            }
        }
View Full Code Here

        final ObjectActionParameter objectActionParameter = getAction().getParameters().get(getNumber());
        if (!(objectActionParameter instanceof ParseableEntryActionParameter)) {
            return null;
        }
        final ParseableEntryActionParameter parameter = (ParseableEntryActionParameter) objectActionParameter;

        final ObjectSpecification parameterSpecification = parameter.getSpecification();
        final ParseableFacet p = parameterSpecification.getFacet(ParseableFacet.class);
        final ObjectAdapter newValue = p.parseTextEntry(null, proposedString);

        final ValidityContext<?> ic = parameter.createProposedArgumentInteractionContext(getAuthenticationSession(), InteractionInvocationMethod.BY_USER, adapter, arguments(newValue), getNumber());

        final InteractionResultSet buf = new InteractionResultSet();
        InteractionUtils.isValidResultSet(parameter, ic, buf);
        if (buf.isVetoed()) {
            return buf.getInteractionResult().getReason();
View Full Code Here

            descriptions[i] = parameters.get(i).getDescription();
            fieldSpecifications[i] = parameters.get(i).getSpecification();
            optional[i] = parameters.get(i).isOptional();

            if (parameters.get(i).getSpecification().isParseable()) {
                final ParseableEntryActionParameter valueParameter = (ParseableEntryActionParameter) parameters.get(i);
                noLines[i] = valueParameter.getNoLines();
                wraps[i] = valueParameter.canWrap();
                maxLength[i] = valueParameter.getMaximumLength();
                typicalLength[i] = valueParameter.getTypicalLineLength();
            }

        }

        // String[] names = action.getParameterNames();
View Full Code Here

        for (int i = 0; i < parameters.length; i++) {
            final List<ObjectActionParameter> parameters2 = action.getParameters();
            final ObjectAdapter adapter = parameters[i];
            final ObjectSpecification specification = parameters2.get(i).getSpecification();
            if (specification.isParseable()) {
                final ParseableEntryActionParameter parseableEntryActionParameter = (ParseableEntryActionParameter) parameters2.get(i);
                parameterContents[i] = new TextParseableParameterImpl(parseableEntryActionParameter, adapter, options[i], i, this);
            } else {
                parameterContents[i] = new ObjectParameterImpl((OneToOneActionParameter) parameters2.get(i), adapter, options[i], i, this);
            }
        }
View Full Code Here

            descriptions[i] = parameters.get(i).getDescription();
            fieldSpecifications[i] = parameters.get(i).getSpecification();
            optional[i] = parameters.get(i).isOptional();

            if (parameters.get(i).getSpecification().isParseable()) {
                final ParseableEntryActionParameter valueParameter = (ParseableEntryActionParameter) parameters.get(i);
                noLines[i] = valueParameter.getNoLines();
                wraps[i] = valueParameter.canWrap();
                maxLength[i] = valueParameter.getMaximumLength();
                typicalLength[i] = valueParameter.getTypicalLineLength();
            }

        }

        // String[] names = action.getParameterNames();
View Full Code Here

        for (int i = 0; i < parameters.length; i++) {
            final List<ObjectActionParameter> parameters2 = action.getParameters();
            final ObjectAdapter adapter = parameters[i];
            final ObjectSpecification specification = parameters2.get(i).getSpecification();
            if (specification.isParseable()) {
                final ParseableEntryActionParameter parseableEntryActionParameter =
                    (ParseableEntryActionParameter) parameters2.get(i);
                parameterContents[i] =
                    new TextParseableParameterImpl(parseableEntryActionParameter, adapter, options[i], i, this);
            } else {
                parameterContents[i] =
View Full Code Here

        final ObjectActionParameter objectActionParameter = getAction().getParameters().get(getNumber());
        if (!(objectActionParameter instanceof ParseableEntryActionParameter)) {
            return null;
        }
        final ParseableEntryActionParameter parameter = (ParseableEntryActionParameter) objectActionParameter;

        final ObjectSpecification parameterSpecification = parameter.getSpecification();
        final ParseableFacet p = parameterSpecification.getFacet(ParseableFacet.class);
        final ObjectAdapter newValue = p.parseTextEntry(null, proposedString);

        final ValidityContext<?> ic =
            parameter.createProposedArgumentInteractionContext(getAuthenticationSession(),
                InteractionInvocationMethod.BY_USER, adapter, arguments(newValue), getNumber());

        final InteractionResultSet buf = new InteractionResultSet();
        InteractionUtils.isValidResultSet(parameter, ic, buf);
        if (buf.isVetoed()) {
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.spec.feature.ParseableEntryActionParameter

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.