Package io.fabric8.maven
Class XMLFormat
java.lang.Object
io.fabric8.maven.XMLFormat
Output format for an XML document
This experimental class is a simple wrapper around JDOM2's XMLOutputter to provide a simple way to format XML
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLFormat.Builderbuilder()Create a new builderstatic XMLFormat.BuilderCreate a new builder with the givenXMLFormatFormat the XML from the given readervoidboolean
-
Field Details
-
DEFAULT
-
-
Method Details
-
getIndent
- Returns:
- the number of spaces to use for indentation
-
isInsertLineBreakBetweenMajorSections
public boolean isInsertLineBreakBetweenMajorSections()- Returns:
- true if a line break should be inserted between major sections
-
getTextMode
-
format
Format the XML from the given reader- Parameters:
reader- the reader- Returns:
- the formatted XML
-
format
-
builder
Create a new builder- Returns:
- a new builder
-
builder
Create a new builder with the givenXMLFormat- Parameters:
format- the format- Returns:
- a new builder
-