/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void method(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getMethods(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } } }
/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void method(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getMethods(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } } }
/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void field(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getFields(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } }
/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void field(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getFields(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } }
/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void field(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getFields(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } }
/** * This is used to acquire the contacts for the annotated fields * within the specified class. The field contacts are added to * either the attributes or elements map depending on annotation. * * @param detail this contains the details for the class scanned */ private void method(Detail detail) throws Exception { Class type = detail.getType(); DefaultType access = detail.getOverride(); ContactList list = support.getMethods(type, access); for(Contact contact : list) { Annotation label = contact.getAnnotation(); if(label != null) { builder.process(contact, label); } } } }
/** * This method is used to scan the class hierarchy for each class * in order to extract fields that contain XML annotations. If * the field 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(); }
/** * This method is used to scan the class hierarchy for each class * in order to extract fields that contain XML annotations. If * the field 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(); }
/** * This method is used to scan the class hierarchy for each class * in order to extract fields that contain XML annotations. If * the field 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(); }
/** * 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(); }
/** * Scan the fields and methods such that the given class is scanned * first then all super classes up to the root <code>Object</code>. * All fields and methods from the most specialized classes override * fields and methods from higher up the inheritance hierarchy. This * means that annotated details can be overridden. * * @param detail contains the methods and fields to be examined */ private void scan(Detail detail) throws Exception { DefaultType access = detail.getOverride(); Class type = detail.getType(); while(type != null) { Detail value = support.getDetail(type, access); namespace(value); method(value); definition(value); type = value.getSuper(); } commit(detail); }
/** * 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(); }
/** * Scan the fields and methods such that the given class is scanned * first then all super classes up to the root <code>Object</code>. * All fields and methods from the most specialized classes override * fields and methods from higher up the inheritance hierarchy. This * means that annotated details can be overridden. * * @param detail contains the methods and fields to be examined */ private void scan(Detail detail) throws Exception { DefaultType access = detail.getOverride(); Class type = detail.getType(); while(type != null) { Detail value = support.getDetail(type, access); namespace(value); method(value); definition(value); type = value.getSuper(); } commit(detail); }
/** * 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(); }
/** * Scan the fields and methods such that the given class is scanned * first then all super classes up to the root <code>Object</code>. * All fields and methods from the most specialized classes override * fields and methods from higher up the inheritance hierarchy. This * means that annotated details can be overridden. * * @param detail contains the methods and fields to be examined */ private void scan(Detail detail) throws Exception { DefaultType access = detail.getOverride(); Class type = detail.getType(); while(type != null) { Detail value = support.getDetail(type, access); namespace(value); method(value); definition(value); type = value.getSuper(); } commit(detail); }