Class CmiReferenceWriter
java.lang.Object
com._1c.g5.v8.dt.internal.cmi.export.xml.CmiReferenceWriter
- All Implemented Interfaces:
ISpecifiedElementWriter
Specified writer for reference feature
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
ISpecifiedElementWriter.ZeroWriter
-
Field Summary
FieldsFields inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
SMART_ELEMENT_WRITER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReference
(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference feature, org.eclipse.emf.ecore.EObject value) Get string representation of referencevoid
write
(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, IExportContext exportContext) Write value from eObject-feature reference by specified rules
-
Field Details
-
nameProvider
-
-
Constructor Details
-
CmiReferenceWriter
public CmiReferenceWriter()
-
-
Method Details
-
write
public void write(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, IExportContext exportContext) 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
exportContext
- the exporting project contexts, cannot benull
- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
getReference
public String getReference(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference feature, org.eclipse.emf.ecore.EObject value) Get string representation of reference- Parameters:
eObject
- context objectfeature
- the featurevalue
- the object value- Returns:
- string representation of reference or
null
-