/** * 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 name this is the Java Bean methods name to be matched */ private void build(MethodPart read, String name) throws Exception { MethodPart match = write.take(name); if(match != null) { build(read, match); } else { build(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 name this is the Java Bean methods name to be matched */ private void build(MethodPart read, String name) throws Exception { MethodPart match = write.take(name); if(match != null) { build(read, match); } else { build(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 name this is the Java Bean methods name to be matched */ private void build(MethodPart read, String name) throws Exception { MethodPart match = write.take(name); if(match != null) { build(read, match); } else { build(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. */ private void build() throws Exception { for(String name : read) { MethodPart part = read.get(name); if(part != null) { build(part, name); } } }
/** * 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. */ private void build() throws Exception { for(String name : read) { MethodPart part = read.get(name); if(part != null) { build(part, name); } } }
/** * 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. */ private void build() throws Exception { for(String name : read) { MethodPart part = read.get(name); if(part != null) { build(part, name); } } }
/** * This method is used to scan the class hierarchy for each class * in order to extract methods that contain XML annotations. If * a method is annotated it is converted to a contact so that * it can be used during serialization and deserialization. * * @param detail this contains the details for the class scanned */ private void scan(Detail detail) throws Exception { DefaultType override = detail.getOverride(); DefaultType access = detail.getAccess(); Class base = detail.getSuper(); if(base != null) { extend(base, override); } extract(detail, access); extract(detail); build(); validate(); }
/** * This method is used to scan the class hierarchy for each class * in order to extract methods that contain XML annotations. If * a method is annotated it is converted to a contact so that * it can be used during serialization and deserialization. * * @param detail this contains the details for the class scanned */ private void scan(Detail detail) throws Exception { DefaultType override = detail.getOverride(); DefaultType access = detail.getAccess(); Class base = detail.getSuper(); if(base != null) { extend(base, override); } extract(detail, access); extract(detail); build(); validate(); }
/** * This method is used to scan the class hierarchy for each class * in order to extract methods that contain XML annotations. If * a method is annotated it is converted to a contact so that * it can be used during serialization and deserialization. * * @param detail this contains the details for the class scanned */ private void scan(Detail detail) throws Exception { DefaultType override = detail.getOverride(); DefaultType access = detail.getAccess(); Class base = detail.getSuper(); if(base != null) { extend(base, override); } extract(detail, access); extract(detail); build(); validate(); }