Package br.net.woodstock.rockframework.xml.dom

Examples of br.net.woodstock.rockframework.xml.dom.XmlElement.addElement()


      e.addElement("name").setData(propertyDescriptor.getName());
      e.addElement("required").setData(Boolean.valueOf(tldAttribute.required()));
      e.addElement("rtexprvalue").setData(Boolean.valueOf(tldAttribute.rtexprvalue()));
      if ((!tldAttribute.rtexprvalue()) && (tldAttribute.type() != String.class)) {
        e.addElement("type").setData(tldAttribute.type().getCanonicalName());
      }
    }

    return document.toString();
  }
View Full Code Here


  }

  private XmlElement addCascades(final XmlElement parent, final CascadeType[] cascades) {
    XmlElement element = parent.addElement("cascades");
    for (CascadeType c : cascades) {
      element.addElement("cascade-" + c.name().toLowerCase());
    }
    return element;
  }

}
View Full Code Here

    Assert.notNull(outputStream, "outputStream");
    try {
      SecretKey key = crypter.getSecretKey();
      XmlDocument document = new XmlDocument(CrypterIOHelper.SYNC_CRYPTER_ELEMENT);
      XmlElement root = document.getRoot();
      root.addElement(CrypterIOHelper.KEY_ALGORITHM_ELEMENT).setData(crypter.getAlgorithm());
      CrypterIOHelper.addKey(root, CrypterIOHelper.SECRET_KEY_ELEMENT, key);
      document.write(outputStream);
    } catch (IOException e) {
      throw new CrypterException(e);
    }
View Full Code Here

      PrivateKey privateKey = crypter.getPrivateKey();
      PublicKey publicKey = crypter.getPublicKey();

      XmlDocument document = new XmlDocument(CrypterIOHelper.ASYNC_CRYPTER_ELEMENT);
      XmlElement root = document.getRoot();
      root.addElement(CrypterIOHelper.KEY_ALGORITHM_ELEMENT).setData(crypter.getAlgorithm());

      if (privateKey != null) {
        CrypterIOHelper.addKey(root, CrypterIOHelper.PRIVATE_KEY_ELEMENT, privateKey);
      } else {
        SecurityLog.getInstance().getLogger().info("Private key is null and not will be writed");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.