org.eclipse.lyo.oslc4j.core.model

## Class TypeFactory

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

-     public final class TypeFactory
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `getName(Class<?> objectClass)` If the annotation OslcName is defined and it is different from empty string, returns it.
    `static String` | `getNamespace(Class<?> objectClass)`
    `static String` | `getQualifiedName(Class<?> objectClass)` Returns the qualified name if the unqualified name is not null, otherwise returns null.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### 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.

Copyright © 2016. All rights reserved.