AnnotatedElement annotatedElement = (AnnotatedElement) field;
RdfProperty propertyResource = annotatedElement.getAnnotation(RdfProperty.class);
if (propertyResource != null) {
extractProperty(resource, field.getName(), TypeHelper.getType(field), propertyResource);
} else {
DynamicRdfProperty dynPropertyResource = annotatedElement.getAnnotation(DynamicRdfProperty.class);
if (dynPropertyResource != null) {
extractProperty(resource, field.getName(), TypeHelper.getType(field), dynPropertyResource);
} else {
Literal literal = annotatedElement.getAnnotation(Literal.class);
if (literal != null) {
extractLiteral(resource, field.getName(), TypeHelper.getType(field), literal);
} else {
//nothing to do...?
}
}
}
}
//properties on methods
for (Method method : resourceClass.getMethods()) {
AnnotatedElement annotatedMethod = (AnnotatedElement) method;
RdfProperty propertyResource = annotatedMethod.getAnnotation(RdfProperty.class);
if (propertyResource != null) {
extractProperty(resource, IntrospectionHelper.getAffectedAttribute(method), TypeHelper.getType(method), propertyResource);
} else {
DynamicRdfProperty dynPropertyResource = annotatedMethod.getAnnotation(DynamicRdfProperty.class);
if (dynPropertyResource != null) {
extractProperty(resource, IntrospectionHelper.getAffectedAttribute(method), TypeHelper.getType(method), dynPropertyResource);
} else {
Literal literal = annotatedMethod.getAnnotation(Literal.class);
if (literal != null) {