List of usage examples for org.dom4j.tree DefaultAttribute setValue
public void setValue(String value)
From source file:de.codecentric.multitool.xml.XmlLibrary.java
License:Apache License
/** * Ersetzt das Textinhalt eines Attributes * /*from w ww .j a va 2s . c o m*/ * @param attribute * {@link Attribute} * @param value * Value */ private void replaceAttributeValue(DefaultAttribute attribute, String value) { attribute.setValue(value); }
From source file:org.nuxeo.ecm.jsf2.migration.parser.AttributeValueParser.java
License:Open Source License
@Override public void migrate(Document input) throws Exception { // Migrate the elements matching the rule if (rule.isMigrationAuto()) { for (Node node : listElementsToMigrate) { DefaultAttribute attribute = (DefaultAttribute) node; // Change the value of the attribute attribute.setValue(rule.getNewValue()); }/* w ww . j av a2 s. c o m*/ } }