public class Xpp3Dom extends Object implements Serializable, Dom
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
attributes |
protected List<Dom> |
children |
protected Object |
location |
protected String |
name |
protected String |
value |
CHILDREN_COMBINATION_APPEND, CHILDREN_COMBINATION_MERGE, CHILDREN_COMBINATION_MODE_ATTRIBUTE, DEFAULT_CHILDREN_COMBINATION_MODE, DEFAULT_SELF_COMBINATION_MODE, SELF_COMBINATION_MERGE, SELF_COMBINATION_MODE_ATTRIBUTE, SELF_COMBINATION_OVERRIDE, SELF_COMBINATION_REMOVE| Constructor and Description |
|---|
Xpp3Dom(Dom from,
String name) |
Xpp3Dom(String name) |
Xpp3Dom(String name,
String value) |
Xpp3Dom(String name,
String value,
Map<String,String> attributes,
List<Dom> children,
Object location) |
| Modifier and Type | Method and Description |
|---|---|
Dom |
clone() |
boolean |
equals(Object o) |
String |
getAttribute(String name) |
Map<String,String> |
getAttributes() |
Dom |
getChild(String name) |
int |
getChildCount() |
List<Dom> |
getChildren() |
Object |
getInputLocation() |
String |
getName() |
String |
getValue() |
int |
hashCode() |
static boolean |
isEmpty(String str) |
static boolean |
isNotEmpty(String str) |
Dom |
merge(Dom source,
Boolean childMergeOverride) |
static Dom |
merge(Dom dominant,
Dom recessive)
Merge two DOMs, with one having dominance in the case of collision.
|
static Dom |
merge(Dom dominant,
Dom recessive,
Boolean childMergeOverride)
Merges one DOM into another, given a specific algorithm and possible override points for that algorithm.
|
String |
toString() |
String |
toUnescapedString() |
void |
writeToSerializer(String namespace,
org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) |
protected final String name
protected final String value
protected final Object location
public Xpp3Dom(String name)
public Map<String,String> getAttributes()
getAttributes in interface Dompublic String getAttribute(String name)
getAttribute in interface Dompublic List<Dom> getChildren()
getChildren in interface Dompublic int getChildCount()
public Object getInputLocation()
getInputLocation in interface Dompublic void writeToSerializer(String namespace, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException
IOExceptionpublic static Dom merge(Dom dominant, Dom recessive, Boolean childMergeOverride)
The algorithm is as follows:
public static Dom merge(Dom dominant, Dom recessive)
merge in interface Domdominant - The dominant DOM into which the recessive value/attributes/children will be mergedrecessive - The recessive DOM, which will be merged into the dominant DOMDom.CHILDREN_COMBINATION_MODE_ATTRIBUTE,
Dom.SELF_COMBINATION_MODE_ATTRIBUTEpublic String toUnescapedString()
public static boolean isNotEmpty(String str)
public static boolean isEmpty(String str)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.