Examples of ModelException


Examples of org.apache.jdo.model.ModelException

    }

    /** Throws ModelException. */
    public JDOCollection createJDOCollection()
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

    }

    /** Throws ModelException. */
    public JDOArray createJDOArray()
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

    }
   
    /** Throws ModelException. */
    public JDOMap createJDOMap()
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

     * @param member the member to be removed
     * @exception ModelException if impossible
     */
    public void removeDeclaredMember(JDOMember member) throws ModelException {
        if (member == null) {
            throw new ModelException(
                msg.msg("EXC_InvalidMember", "null")); //NOI18N
        }
        String name = member.getName();
        if (member instanceof JDOField) {
            JDOField field = (JDOField) member;
            // nullify mappedByName which removes mappedBy info
            field.setMappedByName(null);
            // nullify relationship which updates its inverse
            field.setRelationship(null);
            if (associatedProperties.containsValue(member)) {
                associatedProperties.remove(name);
            }
            else {
                declaredFields.remove(name);
            }

            // There might be a property with the field to be removed as
            // associated JDOField => remove the property too.
            JDOProperty prop = getAssociatedProperty(field);
            if (prop != null) {
                removeDeclaredMember(prop);
            }
        }
        else if (member instanceof JDOClass) {
            // inner class
            declaredClasses.remove(name);
        }
        else {
            throw new ModelException(
                msg.msg("EXC_InvalidMember", name)); //NOI18N
        }
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

        if (field == null) {
            field = newJDOFieldInstance(name);
            declaredFields.put(name, field);
        }
        else if (field instanceof JDOProperty) {
            throw new ModelException(
                msg.msg("EXC_ExistingJDOProperty", name)); //NOI18N
        }
        return field;
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

        }
        else if (field instanceof JDOProperty) {
            property = (JDOProperty) field;
        }
        else {
            throw new ModelException(
                msg.msg("EXC_ExistingJDOField", name)); //NOI18N
        }
        return property;
    }
View Full Code Here

Examples of org.apache.jdo.model.ModelException

            property = newJDOPropertyInstance(name, associatedJDOField);
            associatedProperties.put(name, property);
        }
        else {
            if (property.getAssociatedJDOField() != associatedJDOField) {
                throw new ModelException(
                    msg.msg("EXC_ExistingJDOAssociatedProperty", //NOI18N
                            name, associatedJDOField));
            }
        }
        return property;
View Full Code Here

Examples of org.apache.jdo.model.ModelException

     */
    public JavaModel createJavaModel(Object key)
        throws ModelException
    {
        if ((key != null) && (!(key instanceof ClassLoader)))
            throw new ModelException(msg.msg("EXC_InvalidJavaModelKey", //NOI18N
                                             key.getClass().getName()));
       
        ClassLoader classLoader = (ClassLoader)key;
        JavaModel javaModel = newJavaModelInstance(classLoader);

View Full Code Here

Examples of org.apache.scaffold.model.ModelException

     * @exception Collects and returns any Exceptions
     * @returns Null on success, or a collection of Exceptions
     */
    public ModelResult execute(Object source, Object target)
            throws ModelException {
        throw new ModelException(Messages.NOT_IMPLEMENTED_EXCEPTION);
    }
View Full Code Here

Examples of org.bioversityinternational.model.ModelException

   *         ModelException - if invalid modelURI parameter specified
   */
  protected ModelDocument(String modelURI, Boolean local) throws IOException, ModelException {
   
    if(modelURI == null) {
      throw new ModelException("ModelDocument(modelURI): modelURI cannot be null!") ;
    }
   
    if(_trace_level>= ModelDocument.VERBOSE) {
      System.err.println( "ModelDocument(modelURI:'"+modelURI+"')") ;
    }
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.