Guest User

Untitled

a guest
Feb 21st, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. String rootNodeType = fN.type;
  2.  
  3. BinaryLogicOpType _blop = new BinaryLogicOpType();
  4. JAXBElement<BinaryLogicOpType> root = constructRootElement(_blop, factory, rootNodeType);
  5.  
  6. /** LETS CREATE THE FIRST CHILD ELEMENT */
  7. BinaryComparisonOpType attrName1GTEFive = new BinaryComparisonOpType();
  8. _blop.getOps().add(factory.createPropertyIsEqualTo(attrName1GTEFive));
  9.  
  10. JAXBElement<String> attr1Property = factory.createValueReference(fN.nodes.get(0).getProperty());
  11. LiteralType attr1ValueLiteral = new LiteralType();
  12. attr1ValueLiteral.getContent().add(fN.nodes.get(0).getValue());
  13.  
  14. JAXBElement<LiteralType> attr1Value = factory.createLiteral(attr1ValueLiteral);
  15.  
  16. attrName1GTEFive.getExpression().add(attr1Property);
  17. attrName1GTEFive.getExpression().add(attr1Value);
Add Comment
Please, Sign In to add comment