public final CommonEvent asCommonEvent ( final JAXBContext ctx ) { final Object m ; if ( getMeta ( ) == null ) { m = null ; } else { m = getMeta ( ) . unmarshalContent ( ctx ) ; } final Object d = getData ( ) . unmarshalContent ( ctx ) ; if ( getMeta ( ) == null ) { return new SimpleCommonEvent ( getId ( ) , new TypeName ( getData ( ) . getType ( ) ) , d ) ; } return new SimpleCommonEvent ( getId ( ) , new TypeName ( getData ( ) . getType ( ) ) , d , new TypeName ( getMeta ( ) . getType ( ) ) , m ) ; }
Returns this object as a common event object .