com.atlassian.plugin.webresource
Class Dom4jFluent

java.lang.Object
  extended by com.atlassian.plugin.webresource.Dom4jFluent

public class Dom4jFluent
extends Object


Nested Class Summary
static class Dom4jFluent.Element
          Element wrapper class for configuration elements
 
Constructor Summary
Dom4jFluent()
           
 
Method Summary
static Map<String,String> attributes(String... attrs)
           
static Dom4jFluent.Element element(String name, Dom4jFluent.Element... elements)
          Constructs the element containg child elements
static Dom4jFluent.Element element(String name, Iterable<Iterable<Dom4jFluent.Element>> elements)
          Constructs the element containg child elements
static Dom4jFluent.Element element(String name, Map<String,String> attributes, Dom4jFluent.Element... elements)
          Constructs the element containg child elements
static Dom4jFluent.Element element(String name, Map<String,String> attributes, Iterable<Iterable<Dom4jFluent.Element>> elements)
          Constructs the element containg child elements
static Dom4jFluent.Element element(String name, String value)
          Constructs the element with a textual body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dom4jFluent

public Dom4jFluent()
Method Detail

attributes

public static Map<String,String> attributes(String... attrs)

element

public static Dom4jFluent.Element element(String name,
                                          String value)
Constructs the element with a textual body

Parameters:
name - The element name
value - The element text value
Returns:
The element object

element

public static Dom4jFluent.Element element(String name,
                                          Dom4jFluent.Element... elements)
Constructs the element containg child elements

Parameters:
name - The element name
elements - The child elements
Returns:
The Element object

element

public static Dom4jFluent.Element element(String name,
                                          Iterable<Iterable<Dom4jFluent.Element>> elements)
Constructs the element containg child elements

Parameters:
name - The element name
elements - The child elements
Returns:
The Element object

element

public static Dom4jFluent.Element element(String name,
                                          Map<String,String> attributes,
                                          Dom4jFluent.Element... elements)
Constructs the element containg child elements

Parameters:
name - The element name
elements - The child elements
Returns:
The Element object

element

public static Dom4jFluent.Element element(String name,
                                          Map<String,String> attributes,
                                          Iterable<Iterable<Dom4jFluent.Element>> elements)
Constructs the element containg child elements

Parameters:
name - The element name
elements - The child elements
Returns:
The Element object


Copyright © 2011 Atlassian. All Rights Reserved.