Examples of RDFProperty


Examples of org.wikier.trioo.jtrioo.annotations.RdfProperty

    // convenient to intercept all
    // if (!Modifier.isAbstract(method.getModifiers())) {
    //   retValFromSuper = proxy.invokeSuper(obj, args);
    // }
    AnnotatedElement annElement = (AnnotatedElement) method;
    RdfProperty property = annElement.getAnnotation(RdfProperty.class);
    if (property != null) {
//      String type = property.type();
//      logger.debug("Intercepting execution for property '" + type + "'");
//     
//      NodeIterator objectsIterator = subject.getModel().listObjectsOfProperty(getSubject(), rdfProperty);
View Full Code Here

Examples of org.wikier.trioo.jtrioo.annotations.RdfProperty

    resource.setRdfType(classResource.rdftype());
   
    //properties on fields
    for (Field field : resourceClass.getDeclaredFields()) {
      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) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.