/** * This method is used to remove a particular method from the list * of contacts. If the <code>Transient</code> annotation is used * by any method then this method must be removed from the schema. * In particular it is important to remove methods if there are * defaults applied to the class. * * @param method this is the method that is to be removed * @param label this is the label associated with the method * @param list this is the list of annotations on the method */ private void remove(Method method, Annotation label, Annotation[] list) throws Exception { MethodPart part = factory.getInstance(method, label, list); MethodType type = part.getMethodType(); if(type == MethodType.GET) { remove(part, read); } if(type == MethodType.IS) { remove(part, read); } if(type == MethodType.SET) { remove(part, write); } }
/** * This method is used to remove a particular method from the list * of contacts. If the <code>Transient</code> annotation is used * by any method then this method must be removed from the schema. * In particular it is important to remove methods if there are * defaults applied to the class. * * @param method this is the method that is to be removed * @param label this is the label associated with the method * @param list this is the list of annotations on the method */ private void remove(Method method, Annotation label, Annotation[] list) throws Exception { MethodPart part = factory.getInstance(method, label, list); MethodType type = part.getMethodType(); if(type == MethodType.GET) { remove(part, read); } if(type == MethodType.IS) { remove(part, read); } if(type == MethodType.SET) { remove(part, write); } }
/** * This method is used to remove a particular method from the list * of contacts. If the <code>Transient</code> annotation is used * by any method then this method must be removed from the schema. * In particular it is important to remove methods if there are * defaults applied to the class. * * @param method this is the method that is to be removed * @param label this is the label associated with the method * @param list this is the list of annotations on the method */ private void remove(Method method, Annotation label, Annotation[] list) throws Exception { MethodPart part = factory.getInstance(method, label, list); MethodType type = part.getMethodType(); if(type == MethodType.GET) { remove(part, read); } if(type == MethodType.IS) { remove(part, read); } if(type == MethodType.SET) { remove(part, write); } }
remove(method, label, list);
remove(method, label, list);
remove(method, label, list);