/** * This is used to validate the object once all the get methods * have been matched with a set method. This ensures that there * is not a set method within the object that does not have a * match, therefore violating the contract of a property. */ private void validate() throws Exception { for(String name : write) { MethodPart part = write.get(name); if(part != null) { validate(part, name); } } }
/** * This is used to validate the object once all the get methods * have been matched with a set method. This ensures that there * is not a set method within the object that does not have a * match, therefore violating the contract of a property. */ private void validate() throws Exception { for(String name : write) { MethodPart part = write.get(name); if(part != null) { validate(part, name); } } }
/** * This is used to validate the object once all the get methods * have been matched with a set method. This ensures that there * is not a set method within the object that does not have a * match, therefore violating the contract of a property. */ private void validate() throws Exception { for(String name : write) { MethodPart part = write.get(name); if(part != null) { validate(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(); }