|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weblab_project.core.factory.AnnotationFactory
public class AnnotationFactory
To create Annotation
s we strongly encourage to use this
class. It will enable the creation of an Annotation
having an
URI
compliant with the WebLabRI
recommendations.
Since an Annotation
hasn't any sense without being attached to
a Resource
, we only provide a method for creating
Annotation
s that takes a Resource
in
parameter. As a result, the created Annotation
is added to the
Annotation
List
of the Resource
.
Method Summary | |
---|---|
static org.weblab_project.core.model.Annotation |
createAndLinkAnnotation(org.weblab_project.core.model.Resource resource)
Automatically set a valid WebLabRI to the created
Annotation using the Resource in parameter
to generate an unique id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final org.weblab_project.core.model.Annotation createAndLinkAnnotation(org.weblab_project.core.model.Resource resource)
WebLabRI
to the created
Annotation
using the Resource
in parameter
to generate an unique id. Created Annotation
will be added
to resource
.
resource
- the Resource
that will contains the created
Annotation
Annotation
with a valid
WebLabRI
and added to resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |