X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp-api%2Fjava%2Fjvpp%2Fgen%2Fjvppgen%2Futil.py;fp=src%2Fvpp-api%2Fjava%2Fjvpp%2Fgen%2Fjvppgen%2Futil.py;h=ce34f8549d8dd7a64bf84bdf9bc82b18737ac1e4;hb=acf33e49b99f8046ae42ed5fd8bff47be396dd7c;hp=6c2ffbc420c9e7b59d0db3d4c1bac36b76640d65;hpb=8f3ad25c637381da3f499f992c3477768cb636f9;p=vpp.git diff --git a/src/vpp-api/java/jvpp/gen/jvppgen/util.py b/src/vpp-api/java/jvpp/gen/jvppgen/util.py index 6c2ffbc420c..ce34f8549d8 100644 --- a/src/vpp-api/java/jvpp/gen/jvppgen/util.py +++ b/src/vpp-api/java/jvpp/gen/jvppgen/util.py @@ -148,16 +148,12 @@ jni_field_accessors = {'u8': 'ByteField', 'f64[]': 'ObjectField' } -# FIXME no convention in the naming of events (notifications) in vpe.api -notifications_message_suffixes = ("event", "counters") def is_notification(name): - """ Returns true if the structure is a notification regardless of its no other use """ - return is_just_notification(name) + """ Returns true if the structure is a notification """ + # FIXME no convention in the naming of events (notifications) in vpe.api + notifications_message_suffixes = ("event", "counters") - -def is_just_notification(name): - """ Returns true if the structure is just a notification and has no other use """ return name.lower().endswith(notifications_message_suffixes) @@ -182,16 +178,5 @@ def api_message_to_javadoc(api_message): return " * " + str.replace("\n", "\n * ") -notification_dto_suffix = "Notification" - - -def add_notification_suffix(camel_case_dto_name): - camel_case_dto_name += notification_dto_suffix - return camel_case_dto_name - - def is_array(java_type_as_string): return java_type_as_string.endswith("[]") - -def is_want(name): - return name.startswith("want_") \ No newline at end of file