Class Xpp3Dom
- java.lang.Object
-
- org.apache.maven.shared.utils.xml.Xpp3Dom
-
- All Implemented Interfaces:
java.lang.Iterable<Xpp3Dom>
@Deprecated public class Xpp3Dom extends java.lang.Object implements java.lang.Iterable<Xpp3Dom>
Deprecated.use org.w3c.dom, JDOM, XOM, or SAXA reimplementation of Plexus Xpp3Dom based on the public interface of Plexus Xpp3Dom.- Author:
- Kristian Rosenvold
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHILDREN_COMBINATION_APPENDDeprecated.The attribute append.static java.lang.StringCHILDREN_COMBINATION_MODE_ATTRIBUTEDeprecated.The attribute which identifies merge/append.static java.lang.StringSELF_COMBINATION_MERGEDeprecated.The attribute which identifiesmergestatic java.lang.StringSELF_COMBINATION_MODE_ATTRIBUTEDeprecated.The name of the attribute.static java.lang.StringSELF_COMBINATION_OVERRIDEDeprecated.The attributes which identifiesoverride.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddChild(Xpp3Dom child)Deprecated.booleanequals(java.lang.Object obj)Deprecated.java.lang.StringgetAttribute(java.lang.String nameParameter)Deprecated.java.lang.String[]getAttributeNames()Deprecated.Xpp3DomgetChild(int i)Deprecated.Xpp3DomgetChild(java.lang.String nameParameter)Deprecated.intgetChildCount()Deprecated.Xpp3Dom[]getChildren()Deprecated.Xpp3Dom[]getChildren(java.lang.String nameParameter)Deprecated.java.lang.StringgetName()Deprecated.Xpp3DomgetParent()Deprecated.java.lang.StringgetValue()Deprecated.inthashCode()Deprecated.static booleanisEmpty(java.lang.String str)Deprecated.usestr == null || str.trim().isEmpty()static booleanisNotEmpty(java.lang.String str)Deprecated.usestr != null && !str.isEmpty()java.util.Iterator<Xpp3Dom>iterator()Deprecated.static Xpp3DommergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive)Deprecated.static Xpp3DommergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive, java.lang.Boolean childMergeOverride)Deprecated.voidremoveChild(int i)Deprecated.voidsetAttribute(java.lang.String nameParameter, java.lang.String valueParameter)Deprecated.voidsetParent(Xpp3Dom parent)Deprecated.voidsetValue(java.lang.String value)Deprecated.java.lang.StringtoString()Deprecated.java.lang.StringtoUnescapedString()Deprecated.
-
-
-
Field Detail
-
CHILDREN_COMBINATION_MODE_ATTRIBUTE
public static final java.lang.String CHILDREN_COMBINATION_MODE_ATTRIBUTE
Deprecated.The attribute which identifies merge/append.- See Also:
- Constant Field Values
-
CHILDREN_COMBINATION_APPEND
public static final java.lang.String CHILDREN_COMBINATION_APPEND
Deprecated.The attribute append.- See Also:
- Constant Field Values
-
SELF_COMBINATION_MODE_ATTRIBUTE
public static final java.lang.String SELF_COMBINATION_MODE_ATTRIBUTE
Deprecated.The name of the attribute.- See Also:
- Constant Field Values
-
SELF_COMBINATION_OVERRIDE
public static final java.lang.String SELF_COMBINATION_OVERRIDE
Deprecated.The attributes which identifiesoverride.- See Also:
- Constant Field Values
-
SELF_COMBINATION_MERGE
public static final java.lang.String SELF_COMBINATION_MERGE
Deprecated.The attribute which identifiesmerge- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Xpp3Dom
public Xpp3Dom(java.lang.String name)
Deprecated.- Parameters:
name- the name of the instance
-
Xpp3Dom
public Xpp3Dom(Xpp3Dom source)
Deprecated.Create instance.- Parameters:
source- the source
-
Xpp3Dom
public Xpp3Dom(Xpp3Dom src, java.lang.String name)
Deprecated.Create instance.- Parameters:
src- the source Domname- the name of the Dom
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.- Returns:
- the current name
-
getValue
public java.lang.String getValue()
Deprecated.- Returns:
- the current value
-
setValue
public void setValue(java.lang.String value)
Deprecated.- Parameters:
value- the value to be set
-
getAttributeNames
public java.lang.String[] getAttributeNames()
Deprecated.- Returns:
- the array of attribute names
-
getAttribute
public java.lang.String getAttribute(java.lang.String nameParameter)
Deprecated.- Parameters:
nameParameter- the name of the attribute- Returns:
- the attribute value
-
setAttribute
public void setAttribute(java.lang.String nameParameter, java.lang.String valueParameter)Deprecated.- Parameters:
nameParameter- the name of the attributevalueParameter- the value of the attribute
-
getChild
public Xpp3Dom getChild(int i)
Deprecated.- Parameters:
i- the index to be selected- Returns:
- the child selected by index
-
getChild
public Xpp3Dom getChild(java.lang.String nameParameter)
Deprecated.- Parameters:
nameParameter- the name of the child- Returns:
- the child selected by name
-
addChild
public void addChild(Xpp3Dom child)
Deprecated.- Parameters:
child- the child to be added
-
getChildren
public Xpp3Dom[] getChildren()
Deprecated.- Returns:
- the array of childs
-
getChildren
public Xpp3Dom[] getChildren(java.lang.String nameParameter)
Deprecated.- Parameters:
nameParameter- the name of the child- Returns:
- the array of the Dom
-
getChildCount
public int getChildCount()
Deprecated.- Returns:
- the number of childs
-
removeChild
public void removeChild(int i)
Deprecated.- Parameters:
i- the child to be removed
-
getParent
public Xpp3Dom getParent()
Deprecated.- Returns:
- the current parent
-
setParent
public void setParent(Xpp3Dom parent)
Deprecated.- Parameters:
parent- set the parent
-
mergeXpp3Dom
public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive, java.lang.Boolean childMergeOverride)
Deprecated.- Parameters:
dominant- the dominant partrecessive- the recessive partchildMergeOverride- true if child merge will take precedence false otherwise- Returns:
- the merged Xpp3Dom
-
mergeXpp3Dom
public static Xpp3Dom mergeXpp3Dom(Xpp3Dom dominant, Xpp3Dom recessive)
Deprecated.- Parameters:
dominant- the dominant partrecessive- the recessive part- Returns:
- the merged Xpp3Dom
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
toUnescapedString
public java.lang.String toUnescapedString()
Deprecated.- Returns:
- unescaped string
-
isNotEmpty
@Deprecated public static boolean isNotEmpty(java.lang.String str)
Deprecated.usestr != null && !str.isEmpty()Warning: this is not the reverse ofisEmpty(java.lang.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 public static boolean isEmpty(java.lang.String str)
Deprecated.usestr == null || str.trim().isEmpty()Warning: this is not the reverse ofisNotEmpty(java.lang.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
-
-