public class ModelCommentSupport extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
printComponents(Set<Relation> allRelations,
Collection<Relation> compositeRelations,
Collection<Entity> subEntities,
String indent,
PrintStream out)
Recursively prints the components and sub-entities of an entity.
|
static void |
printNonCompositeRelations(Entity entity,
List<Relation> relations,
boolean rootsFromForeignEntity,
String indent,
PrintStream out)
Prints outgoing non-composite relations from components.
|
static void |
printReferencedBy(Entity entity,
Relation relation,
String indent,
PrintStream out)
Prints the referencing relation.
|
static void |
printSubEntities(Collection<Entity> subEntities,
String indent,
PrintStream out)
Recursively prints the sub-entities of an entity.
|
static void |
printVia(Relation relation,
PrintStream out)
Prints the attribute holding the link.
|
public static void printVia(Relation relation, PrintStream out)
relation - the relationout - the output streampublic static void printReferencedBy(Entity entity, Relation relation, String indent, PrintStream out)
entity - the referenced entityrelation - the relationindent - the indent stringout - the output streampublic static void printComponents(Set<Relation> allRelations, Collection<Relation> compositeRelations, Collection<Entity> subEntities, String indent, PrintStream out)
allRelations - set to avoid recursion loopscompositeRelations - the composite relationssubEntities - the sub entitiesindent - the indent stringout - the output streampublic static void printSubEntities(Collection<Entity> subEntities, String indent, PrintStream out)
subEntities - the sub entitiesindent - the indent stringout - the output streampublic static void printNonCompositeRelations(Entity entity, List<Relation> relations, boolean rootsFromForeignEntity, String indent, PrintStream out)
entity - the root entityrelations - the outgoing relationsrootsFromForeignEntity - true if print roots from relation.foreignEntity else relation.entityindent - the indent stringout - the output streamTentackle - distributed, domain- and model-driven