org.meta2project.model.helper
Class AnnoHelper

java.lang.Object
  extended by org.meta2project.model.helper.AnnoHelper

public class AnnoHelper
extends java.lang.Object

The annotation helper.

Author:
Anton Malykh

Constructor Summary
AnnoHelper()
           
 
Method Summary
static java.lang.String getAnnotationInh(java.util.Collection<OntClass> classes, java.lang.String name)
          Get an annotation value for the classes structures by the name
static java.lang.String getAnnotationInh(OntClass cl, java.lang.String name)
          Get an annotation value for the class stucture by the name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnoHelper

public AnnoHelper()
Method Detail

getAnnotationInh

public static java.lang.String getAnnotationInh(OntClass cl,
                                                java.lang.String name)
Get an annotation value for the class stucture by the name

Parameters:
cl - the bottom class of a class structure
name - the annotation name to find
Returns:
the first found annotation value; null if there is no values with the specified name

getAnnotationInh

public static java.lang.String getAnnotationInh(java.util.Collection<OntClass> classes,
                                                java.lang.String name)
Get an annotation value for the classes structures by the name

Parameters:
classes - the bottom classes of class structures
name - the annotation name to find
Returns:
the first found annotation value; null if there is no values with the specified name