{
CharSequence cs = new StringBuilder( "" );
if ( object instanceof ClassifierFacade )
{
ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) object;
if ( type.getMetaObject() instanceof PrimitiveType )
{
if ( "datatype".equals( type.getPackageName() ) )
{
cs = type.getFullyQualifiedName();
}
}
}
else if ( object instanceof AttributeFacade )
{
AttributeFacade attribute = (AttributeFacade) object;
ClassifierFacadeLogicImpl type = (ClassifierFacadeLogicImpl) attribute.getType();
if ( type.getMetaObject() instanceof PrimitiveType )
{
if ( "datatype".equals( type.getPackageName() ) )
{
cs = type.getFullyQualifiedName();
}
}
}
return cs;