Class FormFeatureAttributeWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.form.export.xml.writer.FormFeatureAttributeWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
- Direct Known Subclasses:
CheckBoxTypeXmlWriter
,FormChildrenAlignWriter
,LogFormElementHeightControlVariantWriter
,LogFormTableHeightControlVariantWriter
public class FormFeatureAttributeWriter extends Object implements ISpecifiedElementWriter
Class to write EAttribute features of a Form.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
ISpecifiedElementWriter.ZeroWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected IFormObjectDefaultValueProvider
defaultValueProvider
protected IQNameProvider
nameProvider
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
SMART_ELEMENT_WRITER
-
-
Constructor Summary
Constructors Constructor Description FormFeatureAttributeWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getWritableValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute attribute, Version version)
Get value of given context object and attribute to write in xmlprotected boolean
isWritable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute attribute, boolean writeEmpty, Version version)
Tests whether a feature is need to be writevoid
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 rules
-
-
-
Field Detail
-
nameProvider
@Inject protected IQNameProvider nameProvider
-
defaultValueProvider
@Inject protected IFormObjectDefaultValueProvider defaultValueProvider
-
-
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
-
getWritableValue
protected Object getWritableValue(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute attribute, Version version)
Get value of given context object and attribute to write in xml- Parameters:
eObject
- context object, cannot benull
attribute
- theEAttribute
, cannot benull
version
- the exporting projectVersion
, cannot benull
- Returns:
- the value object, can be
null
-
isWritable
protected boolean isWritable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute attribute, boolean writeEmpty, Version version)
Tests whether a feature is need to be write- Parameters:
eObject
- context object, cannot benull
attribute
- theEAttribute
, cannot benull
writeEmpty
- environment property to writing empty elementversion
- the exporting projectVersion
, cannot benull
- Returns:
true
if the feature is must be write orfalse
in otherwise
-
-