Package org.apache.maven.model.v4
Class MavenStaxWriter
java.lang.Object
org.apache.maven.model.v4.MavenStaxWriter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAddLocationInformation
(boolean addLocationInformation) Method setAddLocationInformation.void
setFileComment
(String fileComment) Method setFileComment.void
setNamespace
(String namespace) Method setNamespace.void
setSchemaLocation
(String schemaLocation) Method setSchemaLocation.void
setStringFormatter
(Function<InputLocation, String> stringFormatter) Method setStringFormatter.protected String
toString
(InputLocation location) Method toString.void
write
(OutputStream stream, Model model) Method write.void
Method write.protected void
writeLocationTracking
(InputLocationTracker locationTracker, Object key, XMLStreamWriter serializer) Method writeLocationTracking.
-
Field Details
-
stringFormatter
Field stringFormatter.
-
-
Constructor Details
-
MavenStaxWriter
public MavenStaxWriter()
-
-
Method Details
-
setNamespace
Method setNamespace.- Parameters:
namespace
- the namespace to use.
-
setSchemaLocation
Method setSchemaLocation.- Parameters:
schemaLocation
- the schema location to use.
-
setFileComment
Method setFileComment.- Parameters:
fileComment
- a fileComment object.
-
setAddLocationInformation
public void setAddLocationInformation(boolean addLocationInformation) Method setAddLocationInformation. -
setStringFormatter
Method setStringFormatter.- Parameters:
stringFormatter
-
-
write
Method write.- Parameters:
writer
- a writer objectmodel
- a Model object- Throws:
IOException
- IOException if anyXMLStreamException
-
write
Method write.- Parameters:
stream
- a stream objectmodel
- a Model object- Throws:
IOException
- IOException if anyXMLStreamException
-
writeLocationTracking
protected void writeLocationTracking(InputLocationTracker locationTracker, Object key, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeLocationTracking.- Parameters:
locationTracker
-serializer
-key
-- Throws:
IOException
XMLStreamException
-
toString
Method toString.- Parameters:
location
-- Returns:
- String
-