public boolean checkType(mxGraph graph,Object value,String type,String attr,String attrValue){
  if (value != null) {
    if (value instanceof Element) {
      return mxUtils.isNode(value,type,attr,attrValue);
    }
 else {
      return value.equals(type);
    }
  }
  return false;
}

public boolean checkType ( mxGraph graph , Object value , String type , String attr , String attrValue ) { if ( value != null ) { if ( value instanceof Element ) { return mxUtils . isNode ( value , type , attr , attrValue ) ; } else { return value . equals ( type ) ; } } return false ; }
checks the type of the given value .
