Package org.apache.rat.tools.xsd
Class XsdWriter
java.lang.Object
org.apache.rat.tools.xsd.XsdWriter
A writer that writes XSD nodes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWrites the attributesclose
(XsdWriter.Type type) Closes (Ends) the element for the type.void
finish()
Finishes the process.init()
Initializes the writer.open
(XsdWriter.Type type, String... attributeMap) Opens (Starts) an element of the specified type along with its attributes.
-
Constructor Details
-
XsdWriter
Creates an XSD writer that wraps a standard Writer.- Parameters:
writer
- the writer to wrap.
-
-
Method Details
-
init
Initializes the writer. Writes the initial "xs:schema tag" .- Returns:
- the Writer.
- Throws:
IOException
- on error.
-
finish
Finishes the process. Closes the document.- Throws:
IOException
- on error.
-
open
Opens (Starts) an element of the specified type along with its attributes.- Parameters:
type
- the Type to start.attributeMap
- the attributes for the element.- Returns:
- this.
- Throws:
IOException
- on error.
-
attribute
Writes the attributes- Parameters:
name
- The name of the attribute.attributeMap
- the attributes of the attribute.- Returns:
- this.
- Throws:
IOException
- on error.
-
close
Closes (Ends) the element for the type.- Parameters:
type
- The type to close.- Returns:
- this.
- Throws:
IOException
- on error
-