activation.setJdk( profileActivation.getJdk() );
/** * Method updateActivation * * @param value * @param element * @param counter * @param xmlTag */ protected void updateActivation(Activation value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "activeByDefault", value.isActiveByDefault() == false ? null : String.valueOf( value.isActiveByDefault() ), "false"); findAndReplaceSimpleElement(innerCount, root, "jdk", value.getJdk(), null); updateActivationOS( value.getOs(), "os", innerCount, root); updateActivationProperty( value.getProperty(), "property", innerCount, root); updateActivationFile( value.getFile(), "file", innerCount, root); } } //-- void updateActivation(Activation, String, Counter, Element)
/** * Method updateActivation. * * @param value * @param element * @param counter * @param xmlTag */ protected void updateActivation(Activation value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "activeByDefault", value.isActiveByDefault() == false ? null : String.valueOf( value.isActiveByDefault() ), "false"); findAndReplaceSimpleElement(innerCount, root, "jdk", value.getJdk(), null); updateActivationOS( value.getOs(), "os", innerCount, root); updateActivationProperty( value.getProperty(), "property", innerCount, root); updateActivationFile( value.getFile(), "file", innerCount, root); } } //-- void updateActivation(Activation, String, Counter, Element)