Пример #1
0
 public static String getAttributeValue(Nodes attributes) {
   if (attributes.hasAny()) {
     Node attribute = attributes.get(0);
     if (attribute instanceof Attribute) {
       return attribute.getValue();
     }
   }
   return "";
 }
Пример #2
0
 public boolean hasOutputVariable(MessageActivity msgActivity) {
   Nodes outVar = msgActivity.toXOM().query("attribute::outputVariable", CONTEXT);
   return outVar.hasAny();
 }