de.unidu.is.annotation.rework.ontology.classes.ServiceObjects
Class AnnotableObject

java.lang.Object
  extended byde.unidu.is.annotation.rework.ontology.classes.ServiceObjects.AnnotableObject
Direct Known Subclasses:
Annotation, AnnotationUri, Document, Folder, MVSelection, Person

public class AnnotableObject
extends java.lang.Object

AnnotableObject.java Represents an annotable object. See class AnnotableObject of the ontology

Author:
Marc Lechtenfeld

Field Summary
 boolean hasAnnotations
          The object has got annotations?
 java.lang.String id
          Id (URL) of the object
 
Constructor Summary
AnnotableObject()
          Creates a new object
AnnotableObject(java.lang.String id)
          Creates a new object with the specified id
 
Method Summary
 java.lang.String getId()
          Returns the ID (URL) of the object
 java.lang.String getLocalName()
          Returns the local name of the URI
 boolean hasAnnotations()
          Returns true, if the object has annotations
 void setHasAnnotation(boolean hasAnnotations)
          Sets the variable hasAnnotations
 void setId(java.lang.String id)
          Sets the ID of the object.
 java.lang.String toString()
          Returns the label of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public java.lang.String id
Id (URL) of the object


hasAnnotations

public boolean hasAnnotations
The object has got annotations?

Constructor Detail

AnnotableObject

public AnnotableObject()
Creates a new object


AnnotableObject

public AnnotableObject(java.lang.String id)
Creates a new object with the specified id

Parameters:
id - Id of the object (without namespace)
Method Detail

getId

public java.lang.String getId()
Returns the ID (URL) of the object

Returns:
ID of the object

setId

public void setId(java.lang.String id)
Sets the ID of the object. (Namespace+id)

Parameters:
id - ID of the object

getLocalName

public java.lang.String getLocalName()
Returns the local name of the URI

Returns:
label

toString

public java.lang.String toString()
Returns the label of the object

Returns:
label of the object
See Also:
getLabel()

setHasAnnotation

public void setHasAnnotation(boolean hasAnnotations)
Sets the variable hasAnnotations

Parameters:
hasAnnotations - Object has annotations?

hasAnnotations

public boolean hasAnnotations()
Returns true, if the object has annotations

Returns:
Object has Annotations?