Package org.tentackle.wurblet
Class ModelCommentSupport
- java.lang.Object
-
- org.tentackle.wurblet.ModelCommentSupport
-
public class ModelCommentSupport extends java.lang.ObjectSupport methods for model comment.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintComponents(java.util.Set<org.tentackle.model.Relation> allRelations, java.util.Collection<org.tentackle.model.Relation> compositeRelations, java.util.Collection<org.tentackle.model.Entity> subEntities, java.lang.String indent, java.io.PrintStream out)Recursively prints the components and sub-entities of an entity.static voidprintNonCompositeRelations(org.tentackle.model.Entity entity, java.util.List<org.tentackle.model.Relation> relations, boolean rootsFromForeignEntity, java.lang.String indent, java.io.PrintStream out)Prints outgoing non-composite relations from components.static voidprintReferencedBy(org.tentackle.model.Entity entity, org.tentackle.model.Relation relation, java.lang.String indent, java.io.PrintStream out)Prints the referencing relation.static voidprintSubEntities(java.util.Collection<org.tentackle.model.Entity> subEntities, java.lang.String indent, java.io.PrintStream out)Recursively prints the sub-entities of an entity.static voidprintVia(org.tentackle.model.Relation relation, java.io.PrintStream out)Prints the attribute holding the link.
-
-
-
Method Detail
-
printVia
public static void printVia(org.tentackle.model.Relation relation, java.io.PrintStream out)Prints the attribute holding the link.- Parameters:
relation- the relationout- the output stream
-
printReferencedBy
public static void printReferencedBy(org.tentackle.model.Entity entity, org.tentackle.model.Relation relation, java.lang.String indent, java.io.PrintStream out)Prints the referencing relation.- Parameters:
entity- the referenced entityrelation- the relationindent- the indent stringout- the output stream
-
printComponents
public static void printComponents(java.util.Set<org.tentackle.model.Relation> allRelations, java.util.Collection<org.tentackle.model.Relation> compositeRelations, java.util.Collection<org.tentackle.model.Entity> subEntities, java.lang.String indent, java.io.PrintStream out)Recursively prints the components and sub-entities of an entity.- Parameters:
allRelations- set to avoid recursion loopscompositeRelations- the composite relationssubEntities- the sub entitiesindent- the indent stringout- the output stream
-
printSubEntities
public static void printSubEntities(java.util.Collection<org.tentackle.model.Entity> subEntities, java.lang.String indent, java.io.PrintStream out)Recursively prints the sub-entities of an entity.- Parameters:
subEntities- the sub entitiesindent- the indent stringout- the output stream
-
printNonCompositeRelations
public static void printNonCompositeRelations(org.tentackle.model.Entity entity, java.util.List<org.tentackle.model.Relation> relations, boolean rootsFromForeignEntity, java.lang.String indent, java.io.PrintStream out)Prints outgoing non-composite relations from components.- Parameters:
entity- the root entityrelations- the outgoing relationsrootsFromForeignEntity- true if print roots from relation.foreignEntity else relation.entityindent- the indent stringout- the output stream
-
-