Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.