public boolean evaluate(final Object element)
{
boolean valid = false;
if (element instanceof NamedElement)
{
final NamedElement modelElement = (NamedElement)element;
final StringBuffer packageName =
new StringBuffer(
UmlUtilities.getPackageName(
modelElement,
MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
true));
// - if the model element is a package then the package name will be the name
// of the package with its package name
if (element instanceof org.eclipse.uml2.Package)
{
final String name = modelElement.getName();
if (StringUtils.isNotBlank(name))
{
packageName.append(MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR);
packageName.append(name);
}