Hello, I am new to M2doc, I am having a question on how to access the self items (self.eAllContents()). First of all, i have created a for loop to iterate the items:
{m:for package | self.eAllContents()}
{m:package}
{m:endfor}
The above expression lists all class, attribute, and reference implementations.
org.eclipse.emf.ecore.impl.EClassImpl@73c1a2a1 (name: Employee) (instanceClassName: null) (abstract: false, interface: false)
org.eclipse.emf.ecore.impl.EAttributeImpl@4201c991 (name: name) (ordered: true, unique: true, lowerBound: 1, upperBound: 1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (iD: false)
org.eclipse.emf.ecore.impl.EReferenceImpl@59c892a0 (name: Has) (ordered: true, unique: true, lowerBound: 1, upperBound: -1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: true, resolveProxies: true)
but I don’t list all these details i only want to access the items when i want them, E.g: class name, with one or two attributes and the reference how is it possible to achieve this using M2doc?