public class NetbeansBuildActionJDOMWriter extends Object
Modifier and Type | Class and Description |
---|---|
class |
NetbeansBuildActionJDOMWriter.Counter
Class Counter.
|
Constructor and Description |
---|
NetbeansBuildActionJDOMWriter() |
Modifier and Type | Method and Description |
---|---|
protected org.jdom2.Element |
findAndReplaceProperties(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
String name,
Map props)
Method findAndReplaceProperties.
|
protected org.jdom2.Element |
findAndReplaceSimpleElement(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
String name,
String text,
String defaultValue)
Method findAndReplaceSimpleElement.
|
protected org.jdom2.Element |
findAndReplaceSimpleLists(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
Collection list,
String parentName,
String childName)
Method findAndReplaceSimpleLists.
|
protected org.jdom2.Element |
findAndReplaceXpp3DOM(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
String name,
org.codehaus.plexus.util.xml.Xpp3Dom dom)
Method findAndReplaceXpp3DOM.
|
protected void |
insertAtPreferredLocation(org.jdom2.Element parent,
org.jdom2.Element child,
NetbeansBuildActionJDOMWriter.Counter counter)
Method insertAtPreferredLocation.
|
protected void |
iterate2NetbeansActionMapping(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
Collection list,
String childTag)
Method iterate2NetbeansActionMapping.
|
protected void |
replaceXpp3DOM(org.jdom2.Element parent,
org.codehaus.plexus.util.xml.Xpp3Dom parentDom,
NetbeansBuildActionJDOMWriter.Counter counter)
Method replaceXpp3DOM.
|
protected void |
updateActionToGoalMapping(ActionToGoalMapping value,
String xmlTag,
NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element element)
Method updateActionToGoalMapping.
|
protected org.jdom2.Element |
updateElement(NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element parent,
String name,
boolean shouldExist)
Method updateElement.
|
protected void |
updateNetbeansActionMapping(NetbeansActionMapping value,
String xmlTag,
NetbeansBuildActionJDOMWriter.Counter counter,
org.jdom2.Element element)
Method updateNetbeansActionMapping.
|
void |
write(ActionToGoalMapping actions,
org.jdom2.Document document,
OutputStreamWriter writer)
Method write.
|
void |
write(ActionToGoalMapping actions,
org.jdom2.Document document,
Writer writer,
org.jdom2.output.Format jdomFormat)
Method write.
|
protected org.jdom2.Element findAndReplaceProperties(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, String name, Map props)
counter
- props
- name
- parent
- protected org.jdom2.Element findAndReplaceSimpleElement(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, String name, String text, String defaultValue)
counter
- defaultValue
- text
- name
- parent
- protected org.jdom2.Element findAndReplaceSimpleLists(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, Collection list, String parentName, String childName)
counter
- childName
- parentName
- list
- parent
- protected org.jdom2.Element findAndReplaceXpp3DOM(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, String name, org.codehaus.plexus.util.xml.Xpp3Dom dom)
counter
- dom
- name
- parent
- protected void insertAtPreferredLocation(org.jdom2.Element parent, org.jdom2.Element child, NetbeansBuildActionJDOMWriter.Counter counter)
parent
- counter
- child
- protected void iterate2NetbeansActionMapping(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, Collection list, String childTag)
counter
- childTag
- list
- parent
- protected void replaceXpp3DOM(org.jdom2.Element parent, org.codehaus.plexus.util.xml.Xpp3Dom parentDom, NetbeansBuildActionJDOMWriter.Counter counter)
parent
- counter
- parentDom
- protected void updateActionToGoalMapping(ActionToGoalMapping value, String xmlTag, NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element element)
value
- element
- counter
- xmlTag
- protected org.jdom2.Element updateElement(NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element parent, String name, boolean shouldExist)
counter
- shouldExist
- name
- parent
- protected void updateNetbeansActionMapping(NetbeansActionMapping value, String xmlTag, NetbeansBuildActionJDOMWriter.Counter counter, org.jdom2.Element element)
value
- element
- counter
- xmlTag
- public void write(ActionToGoalMapping actions, org.jdom2.Document document, OutputStreamWriter writer) throws IOException
actions
- writer
- document
- IOException
public void write(ActionToGoalMapping actions, org.jdom2.Document document, Writer writer, org.jdom2.output.Format jdomFormat) throws IOException
actions
- jdomFormat
- writer
- document
- IOException