public static void validateCompositeData(CompositeData cd){
  if (cd == null) {
    throw new NullPointerException("Null CompositeData");
  }
  if (!isTypeMatched(getBaseGcNotifInfoCompositeType(),cd.getCompositeType())) {
    throw new IllegalArgumentException("Unexpected composite type for GarbageCollectionNotificationInfo");
  }
}

public static void validateCompositeData ( CompositeData cd ) { if ( cd == null ) { throw new NullPointerException ( "Null CompositeData" ) ; } if ( ! isTypeMatched ( getBaseGcNotifInfoCompositeType ( ) , cd . getCompositeType ( ) ) ) { throw new IllegalArgumentException ( "Unexpected composite type for GarbageCollectionNotificationInfo" ) ; } }
validate if the input compositedata has the expected compositetype ( i . e . contain all attributes with expected names and types ) .
