Class TypeFactory
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.TypeFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
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.
-
Method Details
-
getQualifiedName
Returns the qualified name if the unqualified name is not null, otherwise returns null.- Parameters:
objectClass
- object class.- Returns:
- the qualified name.
-
getNamespace
-
getName
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.
-