org.apache.maven.shared.utils.xml
Class Xpp3Dom

java.lang.Object
  extended by org.apache.maven.shared.utils.xml.Xpp3Dom
All Implemented Interfaces:
Iterable<Xpp3Dom>

public class Xpp3Dom
extends Object
implements Iterable<Xpp3Dom>

A reimplementation of Plexus Xpp3Dom based on the public interface of Plexus Xpp3Dom.

Author:
Kristian Rosenvold

Field Summary
static String CHILDREN_COMBINATION_APPEND
           
static String CHILDREN_COMBINATION_MODE_ATTRIBUTE
           
static String SELF_COMBINATION_MERGE
           
static String SELF_COMBINATION_MODE_ATTRIBUTE
           
static String SELF_COMBINATION_OVERRIDE
           
 
Constructor Summary
Xpp3Dom(String name)
           
Xpp3Dom(Xpp3Dom source)
           
Xpp3Dom(Xpp3Dom src, String name)
           
 
Method Summary
 void addChild(Xpp3Dom child)
           
 boolean equals(Object obj)
           
 String getAttribute(String name)
           
 String[] getAttributeNames()
           
 Xpp3Dom getChild(int i)
           
 Xpp3Dom getChild(String name)
           
 int getChildCount()
           
 Xpp3Dom[] getChildren()
           
 Xpp3Dom[] getChildren(String name)
           
 String getName()
           
 Xpp3Dom getParent()
           
 String getValue()
           
 int hashCode()
           
static boolean isEmpty(String str)
           
static boolean isNotEmpty(String str)
           
 Iterator<Xpp3Dom> iterator()
           
static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive)
           
static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive, Boolean childMergeOverride)
           
 void removeChild(int i)
           
 void setAttribute(String name, String value)
           
 void setParent(Xpp3Dom parent)
           
 void setValue(String value)
           
 String toString()
           
 String toUnescapedString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILDREN_COMBINATION_MODE_ATTRIBUTE

public static final String CHILDREN_COMBINATION_MODE_ATTRIBUTE
See Also:
Constant Field Values

CHILDREN_COMBINATION_APPEND

public static final String CHILDREN_COMBINATION_APPEND
See Also:
Constant Field Values

SELF_COMBINATION_MODE_ATTRIBUTE

public static final String SELF_COMBINATION_MODE_ATTRIBUTE
See Also:
Constant Field Values

SELF_COMBINATION_OVERRIDE

public static final String SELF_COMBINATION_OVERRIDE
See Also:
Constant Field Values

SELF_COMBINATION_MERGE

public static final String SELF_COMBINATION_MERGE
See Also:
Constant Field Values
Constructor Detail

Xpp3Dom

public Xpp3Dom(String name)

Xpp3Dom

public Xpp3Dom(Xpp3Dom source)

Xpp3Dom

public Xpp3Dom(@Nonnull
               Xpp3Dom src,
               String name)
Method Detail

getName

public String getName()

getValue

@Nonnull
public String getValue()

setValue

public void setValue(@Nonnull
                     String value)

getAttributeNames

public String[] getAttributeNames()

getAttribute

public String getAttribute(String name)

setAttribute

public void setAttribute(@Nonnull
                         String name,
                         @Nonnull
                         String value)

getChild

public Xpp3Dom getChild(int i)

getChild

public Xpp3Dom getChild(String name)

addChild

public void addChild(Xpp3Dom child)

getChildren

public Xpp3Dom[] getChildren()

getChildren

public Xpp3Dom[] getChildren(String name)

getChildCount

public int getChildCount()

removeChild

public void removeChild(int i)

getParent

public Xpp3Dom getParent()

setParent

public void setParent(Xpp3Dom parent)

mergeXpp3Dom

public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant,
                                   Xpp3Dom recessive,
                                   Boolean childMergeOverride)

mergeXpp3Dom

public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant,
                                   Xpp3Dom recessive)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toUnescapedString

public String toUnescapedString()

isNotEmpty

public static boolean isNotEmpty(String str)

isEmpty

public static boolean isEmpty(String str)

iterator

public Iterator<Xpp3Dom> iterator()
Specified by:
iterator in interface Iterable<Xpp3Dom>


Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.