Class XmlSessionWriterV2_0
java.lang.Object
ca.phon.session.io.xml.v2_0.XmlSessionWriterV2_0
- All Implemented Interfaces:
IPluginExtensionPoint<SessionWriter>
,SessionWriter
@XMLSerial(namespace="https://phon.ca/ns/session",
elementName="session",
bindType=Session.class)
@SessionIO(group="ca.phon",
id="phonbank",
version="2.0",
mimetype="application/xml",
extension="xml",
name="Phon 4.0+ (.xml)")
public final class XmlSessionWriterV2_0
extends Object
implements SessionWriter, IPluginExtensionPoint<SessionWriter>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> Get type of extensionGet factory for extension point objectswriteGra
(ObjectFactory factory, Grasp grasp, String type) writeGraTierData
(ObjectFactory factory, GraspTierData graspTierData) writeIPA
(ObjectFactory factory, IPATranscript ipa) writeIPATier
(ObjectFactory factory, Tier<IPATranscript> ipaTier) writeMor
(ObjectFactory factory, Mor mor, String type) Write mor towriteMorTierData
(ObjectFactory factory, MorTierData tierData) writeOrthography
(ObjectFactory factory, Orthography orthography) void
writeSession
(Session session, OutputStream out) Write the givenSession
to the providedOutputStream
-
Field Details
-
DEFAULT_NAMESPACE
- See Also:
-
DEFAULT_NAMESPACE_LOCATION
- See Also:
-
-
Constructor Details
-
XmlSessionWriterV2_0
public XmlSessionWriterV2_0()
-
-
Method Details
-
writeGraTierData
-
writeGra
-
writeMorTierData
-
writeMor
Write mor to- Parameters:
factory
-mor
-type
- if not null, type attribute will be set- Returns:
- xml mor type
-
writeOrthography
- Parameters:
factory
-orthography
-- Returns:
-
writeIPATier
- Parameters:
ipaTier
-- Returns:
XmlIpaTierType
-
writeIPA
-
writeSession
Description copied from interface:SessionWriter
Write the givenSession
to the providedOutputStream
- Specified by:
writeSession
in interfaceSessionWriter
- Parameters:
session
-out
-- Throws:
IOException
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<SessionWriter>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<SessionWriter>
-