Class TypeFactory

java.lang.Object
org.eclipse.lyo.oslc4j.core.model.TypeFactory

public final class TypeFactory extends Object
  • Method Details

    • getQualifiedName

      public static String getQualifiedName(Class<?> objectClass)
      Returns the qualified name if the unqualified name is not null, otherwise returns null.
      Parameters:
      objectClass - object class.
      Returns:
      the qualified name.
    • getNamespace

      public static String getNamespace(Class<?> objectClass)
    • getName

      public static String getName(Class<?> objectClass)
      If the annotation OslcName is defined and it is different from empty string, returns it. Otherwise returns the class simple name. If the value of the annotation is an empty string, returns null.
      Parameters:
      objectClass - object class.
      Returns:
      the Oslc name.