public String getDescription(final SNode node, final EditorContext editorContext) {
   return "Add Comment for "
       + (((SConceptPropertyOperations.getString(node, "alias") != null)
           ? SConceptPropertyOperations.getString(node, "alias")
           : "Node"))
       + " "
       + ((SPropertyOperations.getString(node, "name") != null)
           ? SPropertyOperations.getString(node, "name")
           : "");
 }
Exemplo n.º 2
0
 public static String getCompareType(SNode operation) {
   String result = null;
   if (SConceptPropertyOperations.getString(operation, "alias").equals("==")) {
     result = "EQ";
   }
   if (SConceptPropertyOperations.getString(operation, "alias").equals("!=")) {
     result = "NE";
   }
   if (SConceptPropertyOperations.getString(operation, "alias").equals(">")) {
     result = "GT";
   }
   if (SConceptPropertyOperations.getString(operation, "alias").equals("<")) {
     result = "LT";
   }
   if (SConceptPropertyOperations.getString(operation, "alias").equals(">=")) {
     result = "GE";
   }
   if (SConceptPropertyOperations.getString(operation, "alias").equals("<=")) {
     result = "LE";
   }
   return result;
 }