Class ModelloFeaturesTestStaxWriter
java.lang.Object
org.codehaus.modello.test.features.io.stax.ModelloFeaturesTestStaxWriter
Class ModelloFeaturesTestStaxWriter.
- Version:
- $Revision$ $Date$
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(OutputStream stream, Features features) Method write.void
Method write.private void
writeAction
(Action action, String tagName, XMLStreamWriter serializer) Method writeAction.private void
writeAnnotationTest
(AnnotationTest annotationTest, String tagName, XMLStreamWriter serializer) Method writeAnnotationTest.private void
writeArrayFeatures
(ArrayFeatures arrayFeatures, String tagName, XMLStreamWriter serializer) Method writeArrayFeatures.private void
writeAssociationFeatures
(AssociationFeatures associationFeatures, String tagName, XMLStreamWriter serializer) Method writeAssociationFeatures.private void
writeBaseClass
(BaseClass baseClass, String tagName, XMLStreamWriter serializer) Method writeBaseClass.private void
writeBidiInList
(BidiInList bidiInList, String tagName, XMLStreamWriter serializer) Method writeBidiInList.private void
writeBidiInSet
(BidiInSet bidiInSet, String tagName, XMLStreamWriter serializer) Method writeBidiInSet.private void
writeBidirectional
(Bidirectional bidirectional, String tagName, XMLStreamWriter serializer) Method writeBidirectional.private void
writeContentTest
(ContentTest contentTest, String tagName, XMLStreamWriter serializer) Method writeContentTest.private void
writeDom
(org.codehaus.plexus.util.xml.Xpp3Dom dom, XMLStreamWriter serializer) Method writeDom.private void
writeDueTo
(DueTo dueTo, String tagName, XMLStreamWriter serializer) Method writeDueTo.private void
writeFeatures
(Features features, String tagName, XMLStreamWriter serializer) Method writeFeatures.private void
writeFile
(File file, String tagName, XMLStreamWriter serializer) Method writeFile.private void
writeInterfacesFeature
(InterfacesFeature interfacesFeature, String tagName, XMLStreamWriter serializer) Method writeInterfacesFeature.private void
writeJavaFeatures
(JavaFeatures javaFeatures, String tagName, XMLStreamWriter serializer) Method writeJavaFeatures.private void
writeNodeItem
(NodeItem nodeItem, String tagName, XMLStreamWriter serializer) Method writeNodeItem.private void
writePackageNameFeature
(PackageNameFeature packageNameFeature, String tagName, XMLStreamWriter serializer) Method writePackageNameFeature.private void
writeReference
(Reference reference, String tagName, XMLStreamWriter serializer) Method writeReference.private void
writeSimpleTypes
(SimpleTypes simpleTypes, String tagName, XMLStreamWriter serializer) Method writeSimpleTypes.private void
writeSubClassLevel1
(SubClassLevel1 subClassLevel1, String tagName, XMLStreamWriter serializer) Method writeSubClassLevel1.private void
writeSubClassLevel2
(SubClassLevel2 subClassLevel2, String tagName, XMLStreamWriter serializer) Method writeSubClassLevel2.private void
writeSubClassLevel3
(SubClassLevel3 subClassLevel3, String tagName, XMLStreamWriter serializer) Method writeSubClassLevel3.private void
writeSuperThing
(SuperThing superThing, String tagName, XMLStreamWriter serializer) Method writeSuperThing.private void
writeThing
(Thing thing, String tagName, XMLStreamWriter serializer) Method writeThing.private void
writeThingy
(Thingy thingy, String tagName, XMLStreamWriter serializer) Method writeThingy.private void
writeXdocFeatures
(XdocFeatures xdocFeatures, String tagName, XMLStreamWriter serializer) Method writeXdocFeatures.private void
writeXmlAttributes
(XmlAttributes xmlAttributes, String tagName, XMLStreamWriter serializer) Method writeXmlAttributes.private void
writeXmlContent
(XmlContent xmlContent, String tagName, XMLStreamWriter serializer) Method writeXmlContent.private void
writeXmlContentLong
(XmlContentLong xmlContentLong, String tagName, XMLStreamWriter serializer) Method writeXmlContentLong.private void
writeXmlContentLongWithAttributes
(XmlContentLongWithAttributes xmlContentLongWithAttributes, String tagName, XMLStreamWriter serializer) Method writeXmlContentLongWithAttributes.private void
writeXmlFeatures
(XmlFeatures xmlFeatures, String tagName, XMLStreamWriter serializer) Method writeXmlFeatures.private void
writeXmlFieldsOrder
(XmlFieldsOrder xmlFieldsOrder, String tagName, XMLStreamWriter serializer) Method writeXmlFieldsOrder.private void
writeXmlFieldsOrderParent
(XmlFieldsOrderParent xmlFieldsOrderParent, String tagName, XMLStreamWriter serializer) Method writeXmlFieldsOrderParent.private void
writeXmlFieldsOrderParent2
(XmlFieldsOrderParent2 xmlFieldsOrderParent2, String tagName, XMLStreamWriter serializer) Method writeXmlFieldsOrderParent2.private void
writeXmlTransientFields
(XmlTransientFields xmlTransientFields, String tagName, XMLStreamWriter serializer) Method writeXmlTransientFields.private void
writeXsdFeatures
(XsdFeatures xsdFeatures, String tagName, XMLStreamWriter serializer) Method writeXsdFeatures.
-
Field Details
-
curId
Field curId. -
idMap
Field idMap.
-
-
Constructor Details
-
ModelloFeaturesTestStaxWriter
public ModelloFeaturesTestStaxWriter()
-
-
Method Details
-
write
Method write.- Parameters:
writer
- a writer object.features
- a features object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
write
Method write.- Parameters:
stream
- a stream object.features
- a features object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeAction
private void writeAction(Action action, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeAction.- Parameters:
action
- a action object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeAnnotationTest
private void writeAnnotationTest(AnnotationTest annotationTest, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeAnnotationTest.- Parameters:
annotationTest
- a annotationTest object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeArrayFeatures
private void writeArrayFeatures(ArrayFeatures arrayFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeArrayFeatures.- Parameters:
arrayFeatures
- a arrayFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeAssociationFeatures
private void writeAssociationFeatures(AssociationFeatures associationFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeAssociationFeatures.- Parameters:
associationFeatures
- a associationFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeBaseClass
private void writeBaseClass(BaseClass baseClass, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeBaseClass.- Parameters:
baseClass
- a baseClass object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeBidiInList
private void writeBidiInList(BidiInList bidiInList, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeBidiInList.- Parameters:
bidiInList
- a bidiInList object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeBidiInSet
private void writeBidiInSet(BidiInSet bidiInSet, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeBidiInSet.- Parameters:
bidiInSet
- a bidiInSet object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeBidirectional
private void writeBidirectional(Bidirectional bidirectional, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeBidirectional.- Parameters:
bidirectional
- a bidirectional object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeContentTest
private void writeContentTest(ContentTest contentTest, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeContentTest.- Parameters:
contentTest
- a contentTest object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeDom
private void writeDom(org.codehaus.plexus.util.xml.Xpp3Dom dom, XMLStreamWriter serializer) throws XMLStreamException Method writeDom.- Parameters:
dom
- a dom object.serializer
- a serializer object.- Throws:
XMLStreamException
- XMLStreamException if any.
-
writeDueTo
private void writeDueTo(DueTo dueTo, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeDueTo.- Parameters:
dueTo
- a dueTo object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeFeatures
private void writeFeatures(Features features, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeFeatures.- Parameters:
features
- a features object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeFile
private void writeFile(File file, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeFile.- Parameters:
file
- a file object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeInterfacesFeature
private void writeInterfacesFeature(InterfacesFeature interfacesFeature, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeInterfacesFeature.- Parameters:
interfacesFeature
- a interfacesFeature object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeJavaFeatures
private void writeJavaFeatures(JavaFeatures javaFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeJavaFeatures.- Parameters:
javaFeatures
- a javaFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeNodeItem
private void writeNodeItem(NodeItem nodeItem, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeNodeItem.- Parameters:
nodeItem
- a nodeItem object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writePackageNameFeature
private void writePackageNameFeature(PackageNameFeature packageNameFeature, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writePackageNameFeature.- Parameters:
packageNameFeature
- a packageNameFeature object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeReference
private void writeReference(Reference reference, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeReference.- Parameters:
reference
- a reference object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeSimpleTypes
private void writeSimpleTypes(SimpleTypes simpleTypes, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeSimpleTypes.- Parameters:
simpleTypes
- a simpleTypes object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeSubClassLevel1
private void writeSubClassLevel1(SubClassLevel1 subClassLevel1, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeSubClassLevel1.- Parameters:
subClassLevel1
- a subClassLevel1 object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeSubClassLevel2
private void writeSubClassLevel2(SubClassLevel2 subClassLevel2, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeSubClassLevel2.- Parameters:
subClassLevel2
- a subClassLevel2 object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeSubClassLevel3
private void writeSubClassLevel3(SubClassLevel3 subClassLevel3, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeSubClassLevel3.- Parameters:
subClassLevel3
- a subClassLevel3 object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeSuperThing
private void writeSuperThing(SuperThing superThing, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeSuperThing.- Parameters:
superThing
- a superThing object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeThing
private void writeThing(Thing thing, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeThing.- Parameters:
thing
- a thing object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeThingy
private void writeThingy(Thingy thingy, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeThingy.- Parameters:
thingy
- a thingy object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXdocFeatures
private void writeXdocFeatures(XdocFeatures xdocFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXdocFeatures.- Parameters:
xdocFeatures
- a xdocFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlAttributes
private void writeXmlAttributes(XmlAttributes xmlAttributes, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlAttributes.- Parameters:
xmlAttributes
- a xmlAttributes object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlContent
private void writeXmlContent(XmlContent xmlContent, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlContent.- Parameters:
xmlContent
- a xmlContent object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlContentLong
private void writeXmlContentLong(XmlContentLong xmlContentLong, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlContentLong.- Parameters:
xmlContentLong
- a xmlContentLong object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlContentLongWithAttributes
private void writeXmlContentLongWithAttributes(XmlContentLongWithAttributes xmlContentLongWithAttributes, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlContentLongWithAttributes.- Parameters:
xmlContentLongWithAttributes
- a xmlContentLongWithAttributes object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlFeatures
private void writeXmlFeatures(XmlFeatures xmlFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlFeatures.- Parameters:
xmlFeatures
- a xmlFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlFieldsOrder
private void writeXmlFieldsOrder(XmlFieldsOrder xmlFieldsOrder, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlFieldsOrder.- Parameters:
xmlFieldsOrder
- a xmlFieldsOrder object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlFieldsOrderParent
private void writeXmlFieldsOrderParent(XmlFieldsOrderParent xmlFieldsOrderParent, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlFieldsOrderParent.- Parameters:
xmlFieldsOrderParent
- a xmlFieldsOrderParent object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlFieldsOrderParent2
private void writeXmlFieldsOrderParent2(XmlFieldsOrderParent2 xmlFieldsOrderParent2, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlFieldsOrderParent2.- Parameters:
xmlFieldsOrderParent2
- a xmlFieldsOrderParent2 object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXmlTransientFields
private void writeXmlTransientFields(XmlTransientFields xmlTransientFields, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXmlTransientFields.- Parameters:
xmlTransientFields
- a xmlTransientFields object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-
writeXsdFeatures
private void writeXsdFeatures(XsdFeatures xsdFeatures, String tagName, XMLStreamWriter serializer) throws IOException, XMLStreamException Method writeXsdFeatures.- Parameters:
xsdFeatures
- a xsdFeatures object.tagName
- a tagName object.serializer
- a serializer object.- Throws:
IOException
- java.io.IOException if any.XMLStreamException
- XMLStreamException if any.
-