Class TypeDescriptionWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.writer.TypeDescriptionWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class TypeDescriptionWriter extends Object implements ISpecifiedElementWriter
Specified writer forTypeDescription
-
-
Nested Class Summary
-
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 TypeDescriptionWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmptyTypeDescription(TypeDescription value)
Test whether givenTypeDescription
is empty in XML data perspectivevoid
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 rulesvoid
writeTypeDescription(ExportXmlStreamWriter writer, TypeDescription value)
Write types and qualifiers from givenTypeDescription
-
-
-
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
-
writeTypeDescription
public void writeTypeDescription(ExportXmlStreamWriter writer, TypeDescription value) throws XMLStreamException, ExportException
Write types and qualifiers from givenTypeDescription
- Parameters:
writer
- theExportXmlStreamWriter
value
- theTypeDescription
to write- Throws:
XMLStreamException
- if unexpected processing errorsExportException
-
isEmptyTypeDescription
public boolean isEmptyTypeDescription(TypeDescription value)
Test whether givenTypeDescription
is empty in XML data perspectiveType description is assumed as empty when it is equal
null
or has no types in list or has one arbitrary type and has no type qualifiers- Parameters:
value
- theTypeDescription
object to test to empty, can benull
- Returns:
true
if specifiedTypeDescription
is empty ofnull
,false
in otherwise
-
-