Class Xpp3Dom
java.lang.Object
org.apache.maven.shared.utils.xml.Xpp3Dom
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attribute append.static final StringThe attribute which identifies merge/append.static final StringThe attribute which identifiesmergestatic final StringThe name of the attribute.static final StringThe attributes which identifiesoverride. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetAttribute(String nameParameter) String[]getChild(int i) intXpp3Dom[]Xpp3Dom[]getChildren(String nameParameter) getName()getValue()inthashCode()static booleanDeprecated.static booleanisNotEmpty(String str) Deprecated.usestr != null && !str.isEmpty()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 interface Iterable
forEach, spliterator
-
Field Details
-
CHILDREN_COMBINATION_MODE_ATTRIBUTE
The attribute which identifies merge/append.- See Also:
-
CHILDREN_COMBINATION_APPEND
-
SELF_COMBINATION_MODE_ATTRIBUTE
-
SELF_COMBINATION_OVERRIDE
The attributes which identifiesoverride.- See Also:
-
SELF_COMBINATION_MERGE
-
-
Constructor Details
-
Xpp3Dom
- Parameters:
name- The name of the instance.
-
-
Method Details
-
getName
- Returns:
- The current name.
-
getValue
-
setValue
-
getAttributeNames
- Returns:
- The array of attribute names.
-
getAttribute
-
setAttribute
-
getChild
- Parameters:
i- The index to be selected.- Returns:
- The child selected by index.
-
getChild
-
getChildren
- Returns:
- The array of childs.
-
getChildren
-
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
-
toString
-
toUnescapedString
- Returns:
- Unescaped string.
-
isNotEmpty
Deprecated.usestr != null && !str.isEmpty()Warning: this is not the reverse ofisEmpty(String). Whitespace only strings are both empty and not empty.- Parameters:
str- the string to be checked- Returns:
- true if the string is not empty (length > 0) and not
null
-
isEmpty
Deprecated.usestr == null || str.trim().isEmpty()Warning: this is not the reverse ofisNotEmpty(String). Whitespace only strings are both empty and not empty.- Parameters:
str- the string to be checked- Returns:
- true if the string only contains whitespace or is
null
-
iterator
-
str == null || str.trim().isEmpty()