1 /*------------------------------------------------------------------------------
 2 Name:      I_AttributeUser.java
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 package org.xmlBlaster.util;
 7 
 8 /**
 9  * @author michele@laghi.eu
10  */
11 public interface I_AttributeUser {
12 
13    /**
14     * @param key
15     * @param value ${xy} are replaced since xmlBlaster v2.2
16     */
17    void addAttribute(String key, String value);
18    
19    /**
20     * 
21     * @param key
22     * @param value
23     * @param replacePlaceHolder if true ${xy} are replaced
24     */
25    void addAttribute(String key, String value, boolean replacePlaceHolder);
26    
27    /**
28     * When the attribute is written to a string in the toXml methods it is wrapped inside a CDATA in case
29     * you pass 'true' here.
30     */
31    void wrapAttributeInCDATA(String attributeKey);
32 
33    /**
34     * When the attribute is written to a string in the toXml methods it is wrapped inside a CDATA. This can
35     * be undone if you pass 'true' here.
36     */
37    void unwrapAttributeFromCDATA(String attributeKey);
38 }
39    


syntax highlighted by Code2HTML, v. 0.9.1