List of usage examples for org.dom4j Document addElement
Element addElement(String name);
Element
node with the given name to this branch and returns a reference to the new node. From source file:com.rayo.core.xml.providers.ColibriProvider.java
License:Apache License
private void createInviteAcceptedEvent(InviteAcceptedEvent accepted, Document document) { Element root = document.addElement(new QName("inviteaccepted", NAMESPACE)); root.addAttribute("callid", accepted.getCallId()); }
From source file:com.rayo.core.xml.providers.ColibriProvider.java
License:Apache License
private void createInviteCompletedEvent(InviteCompletedEvent completed, Document document) { Element root = document.addElement(new QName("invitecompleted", NAMESPACE)); root.addAttribute("callid", completed.getCallId()); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createOffHookCommand(OffHookCommand command, Document document) throws Exception { Handset handset = command.getHandset(); Element root = document.addElement(new QName("offhook", NAMESPACE)); root.addAttribute("cryptoSuite", handset.cryptoSuite); root.addAttribute("localCrypto", handset.localCrypto); root.addAttribute("remoteCrypto", handset.cryptoSuite); root.addAttribute("codec", handset.codec); root.addAttribute("stereo", handset.stereo); root.addAttribute("mixer", handset.mixer); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createOnHookCommand(OnHookCommand command, Document document) throws Exception { document.addElement(new QName("onhook", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createOnHoldEvent(OnHoldEvent onHold, Document document) { document.addElement(new QName("onhold", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createOffHoldEvent(OffHoldEvent offHold, Document document) { document.addElement(new QName("offhold", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createPrivateEvent(PrivateEvent event, Document document) { document.addElement(new QName("private", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createPublicEvent(PublicEvent event, Document document) { document.addElement(new QName("public", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createTransferredEvent(TransferredEvent event, Document document) { document.addElement(new QName("transferred", NAMESPACE)); }
From source file:com.rayo.core.xml.providers.HandsetProvider.java
License:Apache License
private void createTransferringEvent(TransferringEvent event, Document document) { document.addElement(new QName("transferring", NAMESPACE)); }