Package org.apache.isis.core.commons.exceptions

Examples of org.apache.isis.core.commons.exceptions.UnknownTypeException


            final String size = request.getOptionalProperty("size", "5");
            return dropdownList(request, field, allowNotSet, collection, selectedItem, size, facet);
        } else if (type.equals("dropdown")) {
            return dropdownList(request, field, allowNotSet, collection, selectedItem, null, facet);
        } else {
            throw new UnknownTypeException(type);
        }
    }
View Full Code Here


                    return createTextArea(field);
                } else {
                    return createTextField(field);
                }
            } else {
                throw new UnknownTypeException(field.toString());
            }
        }
    }
View Full Code Here

                if (specification.isParseable()) {
                    parameter = new ObjectActionParameterParseable(i, this, paramPeer);
                } else if (specification.isNotCollection()) {
                    parameter = new OneToOneActionParameterImpl(i, this, paramPeer);
                } else if (specification.isParentedOrFreeCollection()) {
                    throw new UnknownTypeException("collections not supported as parameters: " + getIdentifier());
                } else {
                    throw new UnknownTypeException(specification);
                }
                parameters.add(parameter);
            }
            this.parameters = parameters;
        }
View Full Code Here

                    parameterChoicesAdapters[i][j++] = adapter;
                }
            } else */ if (paramSpec.isNotCollection()) {
                parameterChoicesAdapters[i] = new ObjectAdapter[0];
            } else {
                throw new UnknownTypeException(paramSpec);
            }

            if (parameterChoicesAdapters[i].length == 0) {
                parameterChoicesAdapters[i] = null;
            }
View Full Code Here

            } else if (element instanceof DeweyOrderSet) {
                // just flatten.
                DeweyOrderSet childOrderSet = (DeweyOrderSet) element;
                sortAssociations(childOrderSet, associationsToAppendTo);
            } else {
                throw new UnknownTypeException(element);
            }
        }
    }
View Full Code Here

                final DeweyOrderSet set = ((DeweyOrderSet) element);
                final List<ObjectAction> actions = Lists.newArrayList();
                sortActions(set, actions);
                actionsToAppendTo.addAll(actions);
            } else {
                throw new UnknownTypeException(element);
            }
        }
    }
View Full Code Here

    private ObjectAdapter createAdapter(final Class<?> type, final Object object) {
        final ObjectSpecification specification = getSpecificationLookup().loadSpecification(type);
        if (specification.isNotCollection()) {
            return getAdapterManager().adapterFor(object);
        } else {
            throw new UnknownTypeException("not an object, is this a collection?");
        }
    }
View Full Code Here

        } else if (executeWhere == Where.REMOTELY) {
            return Target.REMOTE;
        } else if (executeWhere == Where.DEFAULT) {
            return Target.DEFAULT;
        } else {
            throw new UnknownTypeException(executeWhere);
        }
    }
View Full Code Here

                if (specification.isParseable()) {
                    parameters.add(new ObjectActionParameterParseable(i, this, paramPeer));
                } else if (specification.isNotCollection()) {
                    parameters.add(new OneToOneActionParameterImpl(i, this, paramPeer));
                } else if (specification.isCollection()) {
                    throw new UnknownTypeException("collections not supported as parameters: " + getIdentifier());
                } else {
                    throw new UnknownTypeException(specification);
                }
            }
            this.parameters = parameters;
        }
        return parameters;
View Full Code Here

                    parameterChoicesAdapters[i][j++] = adapter;
                }
            } else if (paramSpec.isNotCollection()) {
                parameterChoicesAdapters[i] = new ObjectAdapter[0];
            } else {
                throw new UnknownTypeException(paramSpec);
            }

            if (parameterChoicesAdapters[i].length == 0) {
                parameterChoicesAdapters[i] = null;
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.commons.exceptions.UnknownTypeException

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.