Class Xpp3Dom
java.lang.Object
org.apache.maven.shared.utils.xml.Xpp3Dom
A reimplementation of Plexus Xpp3Dom based on the public interface of Plexus Xpp3Dom.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attribute append.private static final Stringstatic final StringThe attribute which identifies merge/append.private static final Stringprivate static final Stringprivate static final Xpp3Dom[]private static final String[]private Stringprivate Xpp3Domstatic final StringThe attribute which identifiesmergestatic final StringThe name of the attribute.static final StringThe attributes which identifiesoverride.private static final longprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetAttribute(String nameParameter) String[]getChild(int i) intXpp3Dom[]Xpp3Dom[]getChildren(String nameParameter) getChildrenList(String nameParameter) getName()private PrettyPrintXMLWritergetPrettyPrintXMLWriter(StringWriter writer) getValue()inthashCode()static booleanstatic booleanisNotEmpty(String str) iterator()static Xpp3DommergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive) static Xpp3DommergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive, Boolean childMergeOverride) voidremoveChild(int i) voidsetAttribute(String nameParameter, String valueParameter) voidvoidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
value
-
attributes
-
childList
-
childMap
-
parent
-
CHILDREN_COMBINATION_MODE_ATTRIBUTE
The attribute which identifies merge/append.- See Also:
-
CHILDREN_COMBINATION_MERGE
- See Also:
-
CHILDREN_COMBINATION_APPEND
The attribute append.- See Also:
-
DEFAULT_CHILDREN_COMBINATION_MODE
- See Also:
-
SELF_COMBINATION_MODE_ATTRIBUTE
The name of the attribute.- See Also:
-
SELF_COMBINATION_OVERRIDE
The attributes which identifiesoverride.- See Also:
-
SELF_COMBINATION_MERGE
The attribute which identifiesmerge- See Also:
-
DEFAULT_SELF_COMBINATION_MODE
- See Also:
-
EMPTY_STRING_ARRAY
-
EMPTY_DOM_ARRAY
-
-
Constructor Details
-
Xpp3Dom
- Parameters:
name- The name of the instance.
-
-
Method Details
-
getName
- Returns:
- The current name.
-
getValue
- Returns:
- The current value.
-
setValue
- Parameters:
value- The value to be set.
-
getAttributeNames
- Returns:
- The array of attribute names.
-
getAttribute
- Parameters:
nameParameter- The name of the attribute.- Returns:
- The attribute value.
-
setAttribute
- Parameters:
nameParameter- The name of the attribute.valueParameter- The value of the attribute.
-
getChild
- Parameters:
i- The index to be selected.- Returns:
- The child selected by index.
-
getChild
- Parameters:
nameParameter- The name of the child.- Returns:
- The child selected by name.
-
getChildren
- Returns:
- The array of childs.
-
getChildrenList
-
getChildren
- Parameters:
nameParameter- The name of the child.- Returns:
- The array of the Dom.
-
getChildrenList
-
getChildCount
public int getChildCount()- Returns:
- The number of childs.
-
removeChild
public void removeChild(int i) - Parameters:
i- The child to be removed.
-
getParent
- Returns:
- The current parent.
-
equals
-
hashCode
public int hashCode() -
toString
-
toUnescapedString
- Returns:
- Unescaped string.
-
getPrettyPrintXMLWriter
-
isNotEmpty
- Parameters:
str- The string to be checked.- Returns:
- true if the string is not empty (length > 0) and not
null.
-
isEmpty
- Parameters:
str- The string to be checked.- Returns:
- true if the string is empty or
null.
-
iterator
-