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,,org.nasdanika.common.ProgressMonitor, org.nasdanika.html.model.app.Action> org.nasdanika.common.Diagnosable,org.nasdanika.common.ExecutionParticipant,org.nasdanika.common.ExecutionParticipantInfo,org.nasdanika.common.Function<EClass,,org.nasdanika.html.model.app.Action> EcoreActionSupplier
-
Field Summary
Fields inherited from class org.nasdanika.html.ecore.EClassifierActionSupplier
ePackageResolver, instanceClassFields inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
context, descriptionTabLengthThreshold, elementPredicate, eNamedElementComparator, ePackagePathComputer, ICONS_BASE, labelProviderFields inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
eObjectFields inherited from interface org.nasdanika.common.Diagnosable
SUCCESSFields inherited from interface org.nasdanika.common.Function
NOP -
Constructor Summary
ConstructorsConstructorDescriptionEClassActionSupplier(EClass value, org.nasdanika.common.Context context, Function<EPackage, String> ePackagePathComputer, Function<String, String> javadocResolver, Function<String, Object> ePackageResolver, Predicate<EModelElement> elementPredicate, BiFunction<ENamedElement, String, String> labelProvider, BooleanSupplier isGenerateLoadSpecification, Supplier<String> diagramDialectSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.nasdanika.html.model.html.TagbuildDynamicAttributesTable(List<EAttribute> attributes, org.nasdanika.common.ProgressMonitor progressMonitor) protected org.nasdanika.html.model.html.TagbuildDynamicReferencesTable(List<EReference> references, org.nasdanika.common.ProgressMonitor progressMonitor) org.nasdanika.html.model.app.Actionprotected StringgenerateDiagram(int depth, org.nasdanika.emf.DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, org.nasdanika.common.ProgressMonitor monitor) protected StringgenerateInheritanceDiagram(int depth, org.nasdanika.emf.DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, org.nasdanika.common.ProgressMonitor monitor) protected org.nasdanika.emf.DiagramTextGeneratorgetDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations) protected Stringprotected org.nasdanika.emf.EmfUtil.EModelElementDocumentationprotected Collection<EClass>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
getDefaultLabel, getUses, headerMethods inherited from class org.nasdanika.html.ecore.ENamedElementActionSupplier
nameMethods inherited from class org.nasdanika.html.ecore.EModelElementActionSupplier
addContent, cardinality, computeLabel, encodeEPackage, genericName, genericName, genericType, genericTypeArguments, genericTypeArguments, getEModelElementFirstDocSentence, getInstanceClass, getReferrers, getUses, interpolatedMarkdown, link, link, path, retainDocumentable, size, typeParametersMethods inherited from class org.nasdanika.html.ecore.EObjectActionSupplier
adaptChildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface org.nasdanika.common.Diagnosable
diagnoseMethods inherited from interface org.nasdanika.common.ExecutionParticipant
close, commit, rollback, split, split, splitAndCommit, splitAndCommit, splitAndDiagnose, splitAndDiagnose, splitAndRollback, splitAndRollbackMethods inherited from interface org.nasdanika.common.Function
apply, before, splitAndExecute, splitAndExecute, then, then, then, toFunction
-
Constructor Details
-
EClassActionSupplier
public EClassActionSupplier(EClass value, org.nasdanika.common.Context context, Function<EPackage, String> ePackagePathComputer, Function<String, String> javadocResolver, Function<String, Object> ePackageResolver, Predicate<EModelElement> elementPredicate, BiFunction<ENamedElement, String, String> labelProvider, BooleanSupplier isGenerateLoadSpecification, Supplier<String> diagramDialectSupplier)
-
-
Method Details
-
execute
public org.nasdanika.html.model.app.Action execute(EClass contextEClass, org.nasdanika.common.ProgressMonitor progressMonitor) - Specified by:
executein interfaceorg.nasdanika.common.Function<EClass,org.nasdanika.html.model.app.Action> - Overrides:
executein classEClassifierActionSupplier<EClass>
-
generateInheritanceDiagram
protected String generateInheritanceDiagram(int depth, org.nasdanika.emf.DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, org.nasdanika.common.ProgressMonitor monitor) -
buildDynamicAttributesTable
protected org.nasdanika.html.model.html.Tag buildDynamicAttributesTable(List<EAttribute> attributes, org.nasdanika.common.ProgressMonitor progressMonitor) -
buildDynamicReferencesTable
protected org.nasdanika.html.model.html.Tag buildDynamicReferencesTable(List<EReference> references, org.nasdanika.common.ProgressMonitor progressMonitor) -
getFeatureLoadDoc
protected org.nasdanika.emf.EmfUtil.EModelElementDocumentation getFeatureLoadDoc(EStructuralFeature sf) -
getEStructuralFeatureFirstLoadDocSentence
-
getDiagramTextGenerator
protected org.nasdanika.emf.DiagramTextGenerator getDiagramTextGenerator(StringBuilder sb, boolean appendAttributes, boolean appendOperations) -
generateDiagram
protected String generateDiagram(int depth, org.nasdanika.emf.DiagramTextGenerator.RelationshipDirection relationshipDirection, boolean appendAttributes, boolean appendOperations, org.nasdanika.common.ProgressMonitor monitor) -
getSubTypes
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
- Returns:
- Referrers to this class
-