All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.cuf.debug.ClassNameAdapter Maven / Gradle / Ivy

The newest version!
package net.sf.cuf.debug;

import net.sf.cuf.model.DelegateAccess;


public class ClassNameAdapter implements DelegateAccess
{

    public Object getValue(final Object pValue)
    {
        if (pValue==null)
        {
            return "";
        }
        String name = pValue.getClass().getName();
        String packageName = pValue.getClass().getPackage().getName();
        if (packageName.length()==0)
        {
            return name;
        }
        else
        {
            return name.substring( packageName.length()+1);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy