private ComponentPropertyTypeDataCollector(Annotation componentPropertyAnnotation, EntryWriter componentWriter) { m_componentWriter = componentWriter; // Add in the defined attributes for (String key : componentPropertyAnnotation.keySet()) { Object value = componentPropertyAnnotation.get(key); m_logger.debug("ComponentPropertyTypeDataCollector: handle value %s %s", key, value); handleValue(key, value, value instanceof TypeRef, null); } }
Annotation a = entry.getSecond(); Map<String, String> props = finder.getDefaults(a); for (String key : a.keySet()) { Object obj = a.get(key); String value;
Annotation a = entry.getSecond(); Map<String, String> props = finder.getDefaults(a); for (String key : a.keySet()) { Object obj = a.get(key); String value;
@Override public void annotation(Annotation annotation) { Collection<Element> properties = Create.set(); if (Deprecated.class.getName().equals(annotation.getName().getFQN())) { if (memberEnd) clazz.setDeprecated(true); else last.setDeprecated(true); return; } for (String key : annotation.keySet()) { StringBuilder sb = new StringBuilder(); sb.append(key); sb.append('='); toString(sb, annotation.get(key)); properties.add(new Element(Type.PROPERTY, sb.toString(), null, CHANGED, CHANGED, null)); } if (memberEnd) { members.add(new Element(Type.ANNOTATED, annotation.getName().getFQN(), properties, CHANGED, CHANGED, null)); if (ProviderType.class.getName().equals(annotation.getName().getFQN())) { provider.set(true); } else if (ConsumerType.class.getName().equals(annotation.getName().getFQN())) { provider.set(false); } } else if (last != null) annotations.add(last, new Element(Type.ANNOTATED, annotation.getName().getFQN(), properties, CHANGED, CHANGED, null)); }
private Element annotatedToElement(Annotation annotation) { Collection<Element> properties = Create.set(); for (String key : annotation.keySet()) { addAnnotationMember(properties, key, annotation.get(key)); } return new Element(Type.ANNOTATED, annotation.getName().getFQN(), properties, CHANGED, CHANGED, null); }
private Element annotatedToElement(Annotation annotation) { Collection<Element> properties = Create.set(); for (String key : annotation.keySet()) { addAnnotationMember(properties, key, annotation.get(key)); } return new Element(Type.ANNOTATED, annotation.getName().getFQN(), properties, CHANGED, CHANGED, null); }