org.apache.maven.shared.utils.xml
Class Xpp3Dom
java.lang.Object
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
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
Xpp3Dom
public Xpp3Dom(String name)
Xpp3Dom
public Xpp3Dom(Xpp3Dom source)
Xpp3Dom
public Xpp3Dom(@Nonnull
Xpp3Dom src,
String name)
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.