org.openrdf.elmo.annotations
Annotation Type oneOf
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface oneOf
Placed on roles to explicitly map it to an individual, or on setter method to
restrict the values it will accept.
- value The values must be one of the given individual subjects.
- label The values must equal one of the given labels once
converted into String.
- datatype The values must have a literal datatype given.
- Author:
- James Leigh
value
public abstract String[] value
- Default:
- {}
label
public abstract String[] label
- Default:
- {}
datatype
public abstract String datatype
- Default:
- ""
Copyright © 2004-2008 Aduna. All Rights Reserved.