Overview diagram with entities

51 views
Skip to first unread message

David Screen

unread,
Apr 9, 2019, 2:59:06 PM4/9/19
to Sculptor Generator
Hello,

I am trying to generate a relationship diagram (dot) like the Overview one here (without the field names) http://sculptorgenerator.org/2010/03/20/improved-graphviz-visualization/ but with only the entities.

Is there a way to either restrict the umlgraph-overview.dot diagam to just entities?

Thanks


Taskize Limited - Innovative solutions for Financial Services Technology.
Registered address: 33 Cannon Street, London, EC4M 5SB. Registered in England No. 7921239. This message may contain information that is privileged or confidential. If you are not the intended recipient please delete it and inform the sender immediately.

Torsten Juergeleit

unread,
May 4, 2019, 2:16:54 PM5/4/19
to Sculptor Generator
Unluckily there's no built-in filter for restricting the diagrams to certain domain object types.

package generator


import java.util.Set

import org.sculptor.generator.chain.ChainOverride

import org.sculptor.generator.ext.UmlGraphHelper

import sculptormetamodel.DomainObject

import sculptormetamodel.Entity

import sculptormetamodel.Module


@ChainOverride

class UmlGraphHelperOverride extends UmlGraphHelper {

  override boolean isShownInView(DomainObject domainObject, Set<Module> focus, int detail, String subjectArea) {

    next.isShownInView(domainObject, focus, detail, subjectArea) && domainObject instanceof Entity

 }

}


/Torsten
Reply all
Reply to author
Forward
0 new messages