public void setVersion( String version ) { dom.setAttribute( "version", version ); } }
public void setLocation( String location ) { dom.setAttribute( "location", location ); } }
public void setVersion( String version ) { dom.setAttribute( "version", version ); }
public void setVersion( String version ) { dom.setAttribute( "version", version ); }
/** * @deprecated Not for productive use. Breaks the * {@link TargetDefinitionFile#equals(Object)} and * {@link TargetDefinitionFile#hashCode()} implementations. */ @Deprecated public void setVersion(String version) { dom.setAttribute("version", version); } }
/** * @deprecated Not for productive use. Breaks the * {@link TargetDefinitionFile#equals(Object)} and * {@link TargetDefinitionFile#hashCode()} implementations. */ @Deprecated public void setLocation(String location) { dom.setAttribute("location", location); } }
/** * @deprecated Not for productive use. Breaks the * {@link TargetDefinitionFile#equals(Object)} and * {@link TargetDefinitionFile#hashCode()} implementations. */ @Deprecated public void setVersion(String version) { dom.setAttribute("version", version); } }
public void setStartLevel(int startLevel) { configuration.setAttribute("startLevel", startLevel != NO_STARTLEVEL ? Integer.toString(startLevel) : null); } }
public void setStartLevel(int startLevel) { configuration.setAttribute("startLevel", startLevel != NO_STARTLEVEL ? Integer.toString(startLevel) : null); } }
public void setLicenseFeatureVersion(String version) { if (version != null) { dom.setAttribute("license-feature-version", version); } else { dom.removeAttribute("license-feature-version"); } }
public void setLicenseFeature(String featureId) { if (featureId != null) { dom.setAttribute("license-feature", featureId); } else { dom.removeAttribute("license-feature"); } }
public void setLicenseFeature(String featureId) { if (featureId != null) { dom.setAttribute("license-feature", featureId); } else { dom.removeAttribute("license-feature"); } }
public void setLicenseFeatureVersion(String version) { if (version != null) { dom.setAttribute("license-feature-version", version); } else { dom.removeAttribute("license-feature-version"); } }
public void setLicenseURL(String licenseURL) { Element licenseElement = dom.getChild("license"); if (licenseElement == null) { licenseElement = new Element("license"); dom.addNode(licenseElement); } licenseElement.setAttribute("url", licenseURL); }
public void setDescriptionURL(String descriptionURL) { Element descElement = dom.getChild("description"); if (descElement == null) { descElement = new Element("description"); dom.addNode(descElement); } descElement.setAttribute("url", descriptionURL); }
public void addProperty(String name, String value) { Element properties = iuDom.getChild(PROPERTIES); if (properties == null) { iuDom.addNode(new Element(PROPERTIES)); properties = iuDom.getChild(PROPERTIES); } Element elt = new Element(PROPERTY); elt.setAttribute(NAME, name); elt.setAttribute("value", value); properties.addNode(elt); }
public void setLicenseURL(String licenseURL) { Element licenseElement = dom.getChild("license"); if (licenseElement == null) { licenseElement = new Element("license"); dom.addNode(licenseElement); } licenseElement.setAttribute("url", licenseURL); }
public void addProperty(String name, String value) { Element properties = iuDom.getChild(PROPERTIES); if (properties == null) { iuDom.addNode(new Element(PROPERTIES)); properties = iuDom.getChild(PROPERTIES); } Element elt = new Element(PROPERTY); elt.setAttribute(NAME, name); elt.setAttribute("value", value); properties.addNode(elt); }
protected void replaceCamelElement(Element docElem, Node camelElem, Node oldNode) { replaceChild(docElem, camelElem, oldNode); // lets replace the camel namespace, copying any namespace from the old node as well if (camelElem instanceof Element && oldNode instanceof Element) { for (Attribute attr : ((Element) oldNode).getAttributes()) { if (attr.getName().startsWith("xmlns")) { ((Element) camelElem).setAttribute(attr.getName(), attr.getValue()); } } } }
public static void addParentNamespaces(Element element, Parent parent) { if (parent instanceof Element) { for (Attribute attr : ((Element) parent).getAttributes()) { String name = attr.getName(); if (name.startsWith("xmlns") && element.getAttributeValue(name) == null) { element.setAttribute(name, attr.getValue()); } } addParentNamespaces(element, ((Element) parent).getParent()); } }