thewebsemantic
Annotation Type Uri


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Uri

@Uri indicates which property (via its getter method) provides the beans URI. Use this annotation when you want to handle beans in a more RDF centric way. This requires you to construct your own uri's in the method annoated with @Uri. Normally beans using this pattern will take a single string as the uri in their constructor. public class ExampleBean { private String uri; public ExampleBean(String uri) { this.uri = uri; } @Uri public uri() { return this.uri; } // other properties follow }