org.eclipse.lyo.oslc4j.core.model
Class TypeFactory
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.TypeFactory
public final class TypeFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 © 2014. All Rights Reserved.