org.ops4j.pax.construct.util
Class Xpp3DomHelper
java.lang.Object
org.ops4j.pax.construct.util.Xpp3DomHelper
public class Xpp3DomHelper
- extends java.lang.Object
Copied from plexus-utils 1.4.2 Xpp3Dom.java (last version which appended children correctly)
Method Summary |
static boolean |
isEmpty(java.lang.String str)
|
static boolean |
isNotEmpty(java.lang.String str)
|
static org.codehaus.plexus.util.xml.Xpp3Dom |
mergeXpp3Dom(org.codehaus.plexus.util.xml.Xpp3Dom dominant,
org.codehaus.plexus.util.xml.Xpp3Dom recessive)
Merge two DOMs, with one having dominance in the case of collision. |
static org.codehaus.plexus.util.xml.Xpp3Dom |
mergeXpp3Dom(org.codehaus.plexus.util.xml.Xpp3Dom dominant,
org.codehaus.plexus.util.xml.Xpp3Dom recessive,
java.lang.Boolean childMergeOverride)
Merge two DOMs, with one having dominance in the case of collision. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xpp3DomHelper
public Xpp3DomHelper()
mergeXpp3Dom
public static org.codehaus.plexus.util.xml.Xpp3Dom mergeXpp3Dom(org.codehaus.plexus.util.xml.Xpp3Dom dominant,
org.codehaus.plexus.util.xml.Xpp3Dom recessive,
java.lang.Boolean childMergeOverride)
- Merge two DOMs, with one having dominance in the case of collision.
- Parameters:
dominant
- The dominant DOM into which the recessive value/attributes/children will be mergedrecessive
- The recessive DOM, which will be merged into the dominant DOMchildMergeOverride
- Overrides attribute flags to force merging or appending of child elements into the
dominant DOM- See Also:
#CHILDREN_COMBINATION_MODE_ATTRIBUTE
,
#SELF_COMBINATION_MODE_ATTRIBUTE
mergeXpp3Dom
public static org.codehaus.plexus.util.xml.Xpp3Dom mergeXpp3Dom(org.codehaus.plexus.util.xml.Xpp3Dom dominant,
org.codehaus.plexus.util.xml.Xpp3Dom recessive)
- Merge two DOMs, with one having dominance in the case of collision. Merge mechanisms (vs. override for nodes, or
vs. append for children) is determined by attributes of the dominant root node.
- Parameters:
dominant
- The dominant DOM into which the recessive value/attributes/children will be mergedrecessive
- The recessive DOM, which will be merged into the dominant DOM- See Also:
#CHILDREN_COMBINATION_MODE_ATTRIBUTE
,
#SELF_COMBINATION_MODE_ATTRIBUTE
isNotEmpty
public static boolean isNotEmpty(java.lang.String str)
isEmpty
public static boolean isEmpty(java.lang.String str)
Copyright © 2007-2008 OPS4J. All Rights Reserved.