- java.lang.Object
-
- org.nasdanika.html.ecore.EObjectActionSupplier<T>
-
- org.nasdanika.html.ecore.EModelElementActionSupplier<T>
-
- org.nasdanika.html.ecore.ENamedElementActionSupplier<T>
-
- org.nasdanika.html.ecore.EClassifierActionSupplier<EClass>
-
- org.nasdanika.html.ecore.EClassActionSupplier
-
- All Implemented Interfaces:
AutoCloseable,BiFunction<EClass,ProgressMonitor,Action>,Diagnosable,ExecutionParticipant,ExecutionParticipantInfo,Function<EClass,Action>,EcoreActionSupplier
public class EClassActionSupplier extends EClassifierActionSupplier<EClass>
-
-
Field Summary
-
Fields inherited from class org.nasdanika.html.ecore.EClassifierActionSupplier
instanceClass
-
Fields inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
context, descriptionTabLengthThreshold, ePackagePathComputer, ICONS_BASE
-
Fields inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
eObject
-
Fields inherited from interface org.nasdanika.common.Diagnosable
SUCCESS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionexecute(EClass contextEClass, ProgressMonitor progressMonitor)protected StringgenerateDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, ProgressMonitor monitor)protected StringgenerateInheritanceDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, ProgressMonitor monitor)protected DiagramTextGeneratorgetDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations)protected Collection<EClass>getReferrers()protected Collection<EClass>getSubTypes(EClass eClass)Override to return a list of sub-types of given EClass.-
Methods inherited from class org.nasdanika.html.ecore.EClassifierActionSupplier
getUses, header
-
Methods inherited from class org.nasdanika.html.ecore.ENamedElementActionSupplier
name
-
Methods inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
addContent, cardinality, computeLabel, encodeEPackage, genericName, genericName, genericType, genericTypeArguments, genericTypeArguments, getEModelElementFirstDocSentence, getReferrers, getUses, interpolatedMarkdown, link, path, size, typeParameters
-
Methods inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
adaptChild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
Methods inherited from interface org.nasdanika.common.Diagnosable
diagnose
-
Methods inherited from interface org.nasdanika.common.ExecutionParticipant
close, commit, rollback, split, split, splitAndCommit, splitAndCommit, splitAndDiagnose, splitAndDiagnose, splitAndRollback, splitAndRollback
-
Methods inherited from interface org.nasdanika.common.Function
apply, asFunction, before, splitAndExecute, splitAndExecute, then, then, then
-
-
-
-
Method Detail
-
execute
public Action execute(EClass contextEClass, ProgressMonitor progressMonitor) throws Exception
-
generateInheritanceDiagram
protected String generateInheritanceDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, ProgressMonitor monitor) throws Exception
- Throws:
Exception
-
getDiagramTextGenerator
protected DiagramTextGenerator getDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations)
-
generateDiagram
protected String generateDiagram(int depth, DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, ProgressMonitor monitor) throws Exception
- Throws:
Exception
-
getSubTypes
protected Collection<EClass> getSubTypes(EClass eClass)
Override to return a list of sub-types of given EClass. This implementation returns all sub-types found in the resource set.- Parameters:
eClass-- Returns:
-
getReferrers
protected Collection<EClass> getReferrers()
- Returns:
- Referrers to this class
-
-