public void setUnitType(String value) { Attribute attribute = this.getAttribute(UnitTypeAttribute.NAME); if (attribute == null) { UnitTypeAttribute unitType = new UnitTypeAttribute(value); super.addAttribute(unitType); } else { attribute.setValue(value); } } public String getUnitType(){
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute hrefAttribute = new Attribute("href", ""); hrefAttribute.setValue(resource.getRelativePath(stylesheetResource)); link.addAttribute(hrefAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute hrefAttribute = new Attribute("href", ""); hrefAttribute.setValue(resource.getRelativePath(stylesheetResource)); link.addAttribute(hrefAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute srcAttribute = new Attribute("src", ""); srcAttribute.setValue(resource.getRelativePath(javaScriptResource)); script.addAttribute(srcAttribute); }
public void beforeProcessingSpecification(SpecificationProcessingEvent event) { Resource resource = event.getResource(); //work around with setValue() necessary for Concordion.NET Attribute srcAttribute = new Attribute("src", ""); srcAttribute.setValue(resource.getRelativePath(javaScriptResource)); script.addAttribute(srcAttribute); }
void substituteNameByValue(Attribute att) { // do not substitute refs if (att instanceof RefAttribute) { } else { String value = att.getValue(); String value1 = value; String newValue = this.getValue().trim(); if (!newValue.equals(S_EMPTY)) { value1 = value1.replaceAll(S_UNDER+this.getName()+S_UNDER, newValue); if (!value.equals(value1)) { Element parent = (Element) att.getParent(); // remove attribute so as not to triffer reset error parent.removeAttribute(parent.getAttribute(att.getLocalName())); att.setValue(value1); parent.addAttribute(att); } else { } } } }
val = val.replace(orig, value); if (node instanceof Attribute) { ((Attribute)node).setValue(val); } else if (node instanceof Text) { ((Text)node).setValue(val);
attr.setValue(value); return attr;
attr.setValue(value); return attr;