@Retention(value=RUNTIME) public @interface Predicate
Iterator<RDFNode> getClassType() would return a list of
classs in the RDF sense. But getClass() would
conflict with the java function. @Predicate( class='class' )
Iterator<RDFNode> getClassType() resolves the problem.
The namespace attribute specifies that the namespace of the attribute is not
the same as for the entity.
The upcase boolean attribute (default false) will upcase the first character
of the attribute name. This is the first character after the "get", "set" or
"is" prefix.
the type attribute is used when an iterator is returned. It specifies the
enclosed class type. default = RDFNode.class In the
getClassType() example above we would use the following:
@Predicate( class='class', type=RDFNode.class )
Iterator<RDFNode> getClassType()
NOTE: if type is set to URI.class the return value
is interpreted as a URI string.| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
emptyIsNull
If true empty strings are assumed to be null and are not inserted.
|
boolean |
impl
Indicates that a method is an implementation of an abstract method to
allow the
class to be concrete while not providing a concrete implementation of the
Predicate
annotated methods.
|
String |
literalType
The name of the literal type or an empty string if not is use.
|
String |
name
The name of the predicate.
|
String |
namespace
The namespace for the predicate.
|
String |
postExec
Method on object to call after the method is executed.
|
Class<?> |
type
The java object class that will be returned when the object is read from
the RDF model.
|
boolean |
upcase
determines if the local name should have the first character upper cased.
|
public abstract boolean emptyIsNull
public abstract boolean impl
public abstract String literalType
public abstract String name
public abstract String namespace
public abstract Class<?> type
public abstract boolean upcase
public abstract String postExec
Copyright © 2012-2013 XENEI.com. All Rights Reserved.