org.meta2project.model.debug
Class DebugAnnotatedEntity

java.lang.Object
  extended by org.meta2project.model.debug.DebugAnnotatedEntity
All Implemented Interfaces:
AnnotatedEntity
Direct Known Subclasses:
DebugNamedEntity, DebugOntology

public class DebugAnnotatedEntity
extends java.lang.Object
implements AnnotatedEntity

Author:
Anton Malykh

Field Summary
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
Constructor Summary
DebugAnnotatedEntity(AnnotatedEntity entity)
           
 
Method Summary
 java.lang.String getAnnotation(java.lang.String name)
          Get annotation value by this name.
 java.util.List<java.lang.String> getAnnotationNames()
          Get annotation names for this entity.
 void putAnnotation(java.lang.String name, java.lang.String value)
          Put annotation value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugAnnotatedEntity

public DebugAnnotatedEntity(AnnotatedEntity entity)
Method Detail

getAnnotationNames

public java.util.List<java.lang.String> getAnnotationNames()
Description copied from interface: AnnotatedEntity
Get annotation names for this entity.

Specified by:
getAnnotationNames in interface AnnotatedEntity
Returns:
name list (in ascending order)

getAnnotation

public java.lang.String getAnnotation(java.lang.String name)
Description copied from interface: AnnotatedEntity
Get annotation value by this name.

Specified by:
getAnnotation in interface AnnotatedEntity
Parameters:
name - annotation name
Returns:
annotation value; null if there is no value for this name

putAnnotation

public void putAnnotation(java.lang.String name,
                          java.lang.String value)
Description copied from interface: AnnotatedEntity
Put annotation value.

Specified by:
putAnnotation in interface AnnotatedEntity
Parameters:
name - annotation name
value - annotation value; value will be removed if null