Class ExtInfoWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.form.export.xml.writer.ExtInfoWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class ExtInfoWriter extends Object implements ISpecifiedElementWriter
Specified writer forFormExtInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ExtInfoWriter.ExtInfoFeatureOrderProvider
Provide xml write order ofExtInfo
features-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
ISpecifiedElementWriter.ZeroWriter
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
SMART_ELEMENT_WRITER
-
-
Constructor Summary
Constructors Constructor Description ExtInfoWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isIgnored(org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
Returns the flag indicating whether the feature is ignored when writingprotected static boolean
isWriteEmpty(ExtInfo extInfo)
Calculates write empty flag forExtInfo
void
write(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version)
Write value from eObject-feature reference by specified rulesprotected void
writeExtInfoFeatures(ExtInfo extInfo, org.eclipse.emf.ecore.EObject context, ExportXmlStreamWriter writer, boolean writeEmpty, Version version, FormSmartFeatureWriter featureWriter, ExtInfoWriter.ExtInfoFeatureOrderProvider featureOrderProvider)
Writes extInfo features
-
-
-
Method Detail
-
write
public void write(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version) throws XMLStreamException, ExportException
Description copied from interface:ISpecifiedElementWriter
Write value from eObject-feature reference by specified rules- Specified by:
write
in interfaceISpecifiedElementWriter
- Parameters:
writer
- the xmlExportXmlStreamWriter
, cannot benull
eObject
- context object, cannot benull
feature
- theEStructuralFeature
, cannot benull
writeEmpty
- write empty element iftrue
or nothing iffalse
version
- the exporting projectVersion
, cannot benull
- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
writeExtInfoFeatures
protected void writeExtInfoFeatures(ExtInfo extInfo, org.eclipse.emf.ecore.EObject context, ExportXmlStreamWriter writer, boolean writeEmpty, Version version, FormSmartFeatureWriter featureWriter, ExtInfoWriter.ExtInfoFeatureOrderProvider featureOrderProvider) throws XMLStreamException, ExportException
Writes extInfo features- Parameters:
extInfo
- the extInfo, cannot benull
context
- the context object, cannot benull
writer
- the export xml stream writer, cannot benull
writeEmpty
-true
if empty attributes are writtenversion
- the version, cannot benull
featureWriter
- the form smart feature writer, cannot benull
featureOrderProvider
- the feature order provider, cannot benull
- Throws:
XMLStreamException
ExportException
-
isIgnored
protected boolean isIgnored(org.eclipse.emf.ecore.EStructuralFeature extInfoFeature)
Returns the flag indicating whether the feature is ignored when writing- Parameters:
extInfoFeature
- extInfo feature, cannot benull
- Returns:
true
if feature should be ignored
-
-