/** * This method is used to create a read only contact. A read only * contact object is used when there is constructor injection used * by the class schema. So, read only methods can be used in a * fully serializable and deserializable object. * * @param read this is the part to add as a read only contact */ private void build(MethodPart read) throws Exception { add(new MethodContact(read)); }
/** * This method is used to create a read only contact. A read only * contact object is used when there is constructor injection used * by the class schema. So, read only methods can be used in a * fully serializable and deserializable object. * * @param read this is the part to add as a read only contact */ private void build(MethodPart read) throws Exception { add(new MethodContact(read)); }
/** * This method is used to create a read only contact. A read only * contact object is used when there is constructor injection used * by the class schema. So, read only methods can be used in a * fully serializable and deserializable object. * * @param read this is the part to add as a read only contact */ private void build(MethodPart read) throws Exception { add(new MethodContact(read)); }
/** * This method is used to pair the get methods with a matching set * method. This pairs methods using the Java Bean method name, the * names must match exactly, meaning that the case and value of * the strings must be identical. Also in order for this to succeed * the types for the methods and the annotation must also match. * * @param read this is a get method that has been extracted * @param write this is the write method to compare details with */ private void build(MethodPart read, MethodPart write) throws Exception { Annotation label = read.getAnnotation(); String name = read.getName(); if(!write.getAnnotation().equals(label)) { throw new MethodException("Annotations do not match for '%s' in %s", name, detail); } Class type = read.getType(); if(type != write.getType()) { throw new MethodException("Method types do not match for %s in %s", name, type); } add(new MethodContact(read, write)); }
/** * This method is used to pair the get methods with a matching set * method. This pairs methods using the Java Bean method name, the * names must match exactly, meaning that the case and value of * the strings must be identical. Also in order for this to succeed * the types for the methods and the annotation must also match. * * @param read this is a get method that has been extracted * @param write this is the write method to compare details with */ private void build(MethodPart read, MethodPart write) throws Exception { Annotation label = read.getAnnotation(); String name = read.getName(); if(!write.getAnnotation().equals(label)) { throw new MethodException("Annotations do not match for '%s' in %s", name, detail); } Class type = read.getType(); if(type != write.getType()) { throw new MethodException("Method types do not match for %s in %s", name, type); } add(new MethodContact(read, write)); }
/** * This method is used to pair the get methods with a matching set * method. This pairs methods using the Java Bean method name, the * names must match exactly, meaning that the case and value of * the strings must be identical. Also in order for this to succeed * the types for the methods and the annotation must also match. * * @param read this is a get method that has been extracted * @param write this is the write method to compare details with */ private void build(MethodPart read, MethodPart write) throws Exception { Annotation label = read.getAnnotation(); String name = read.getName(); if(!write.getAnnotation().equals(label)) { throw new MethodException("Annotations do not match for '%s' in %s", name, detail); } Class type = read.getType(); if(type != write.getType()) { throw new MethodException("Method types do not match for %s in %s", name, type); } add(new MethodContact(read, write)); }