if ( targetDefn.isKindOf( elementDefn ) || !onlyOnSelf )
if ( elementDefn.isKindOf( targetDefn ) || !onlyOnSelf )
	public static List getValidationNodes( DesignElement element,			SemanticTriggerDefnSet triggers, boolean onlyOnSelf )	{		List nodes = new ArrayList( );		List validatorDefns = triggers.getTriggerList( );		if ( validatorDefns == null || validatorDefns.isEmpty( ) )			return nodes;		Iterator iter = validatorDefns.iterator( );		while ( iter.hasNext( ) )		{			SemanticTriggerDefn triggerDefn = (SemanticTriggerDefn) iter.next( );			String targetName = triggerDefn.getTargetElement( );			if ( StringUtil.isBlank( targetName ) )			{				nodes.add( new ValidationNode( element, triggerDefn ) );				continue;			}			// if the target name is not empty, check its element definition			ElementDefn targetDefn = (ElementDefn) MetaDataDictionary					.getInstance( ).getElement( targetName );			ElementDefn elementDefn = (ElementDefn) element.getDefn( );			if ( targetDefn.isKindOf( elementDefn ) || !onlyOnSelf )				nodes.add( new ValidationNode( element, triggerDefn ) );		}		return nodes;	}