Examples of UnknownTypeException


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

                    component = factory.createObjectIcon(field, associatedObject, elementId, "value");
                }
            } else if (field.isOneToManyAssociation()) {
                component = factory.createCollectionIcon(field, associatedObject, id);
            } else {
                throw new UnknownTypeException(field);
            }
            fieldBlock.add(component);

            pane.add(fieldBlock);
        }
View Full Code Here

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

        } 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

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

                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

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

                    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

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

                 * (valueSpecification);
                 * value.restoreFromEncodedString(valueData);
                 */
                parameters[i] = value;
            } else {
                throw new UnknownTypeException(data);
            }
        }
        return parameters;
    }
View Full Code Here

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

            return deserializeObjectFromIdentityData(identityData, knownObjects);
        } else if (data instanceof EncodableObjectData) {
            final EncodableObjectData encodableObjectData = (EncodableObjectData) data;
            return deserializeObjectFromEncodableObjectData(encodableObjectData);
        } else {
            throw new UnknownTypeException(data);
        }
    }
View Full Code Here

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

                    associations.add(createProperty(facetMethod));
                }
            } else if (element instanceof OrderSet) {
                // Not supported at present
            } else {
                throw new UnknownTypeException(element);
            }
        }

        return associations;
    }
View Full Code Here

Examples of org.apache.tuscany.core.builder.UnknownTypeException

            } else {
                injector = new MethodInjector(method, new SingletonObjectFactory<Object>(value));
            }
        } else {
            if (field != null) {
                throw new UnknownTypeException(field.getName());
            } else {
                throw new UnknownTypeException(method.getName());
            }
        }
        return injector;

    }
View Full Code Here

Examples of org.netbeans.spi.viewmodel.UnknownTypeException

                return java.text.MessageFormat.format(NbBundle.getBundle(SourcesNodeModel.class).getString(
                        "CTL_SourcesModel_Column_Name_LibrarySources"), new Object [] { f.getPath() });
            } else
            return (String) o;
        } else
        throw new UnknownTypeException (o);
    }
View Full Code Here

Examples of org.netbeans.spi.viewmodel.UnknownTypeException

            if (((String) o).startsWith ("D"))
                return NbBundle.getBundle(SourcesNodeModel.class).getString("CTL_SourcesModel_Column_Name_DescExclusion");
            else
                return NbBundle.getBundle(SourcesNodeModel.class).getString("CTL_SourcesModel_Column_Name_DescRoot");
        } else
        throw new UnknownTypeException (o);
    }
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.