Class CmiReferenceWriter

java.lang.Object
com._1c.g5.v8.dt.internal.cmi.export.xml.CmiReferenceWriter
All Implemented Interfaces:
ISpecifiedElementWriter

public class CmiReferenceWriter extends Object implements ISpecifiedElementWriter
Specified writer for reference feature
  • Field Details

  • 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 interface ISpecifiedElementWriter
      Parameters:
      writer - the xml ExportXmlStreamWriter, cannot be null
      eObject - context object, cannot be null
      feature - the EStructuralFeature, cannot be null
      writeEmpty - write empty element if true or nothing if false
      exportContext - the exporting project contexts, cannot be null
      Throws:
      XMLStreamException - if unexpected processing errors
      ExportException - 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 object
      feature - the feature
      value - the object value
      Returns:
      string representation of reference or null