Package nl.talsmasoftware.umldoclet.uml
Class UMLNode
java.lang.Object
nl.talsmasoftware.umldoclet.uml.UMLNode
- Direct Known Subclasses:
Diagram
,Link
,Namespace
,Parameters
,Parameters.Parameter
,Reference
,Type
,TypeMember
Part of an UML diagram that can render itself to the diagram by
writing to an indenting writer.
It serves as a reusable base-class for all specific UML nodes.
UML nodes are capable of rendering themselves to IndentingPrintWriter
.
- Author:
- Sjoerd Talsma
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
findParent(Class<U> nodeType)
getChildren(Class<T> type)
Returns all children that are an instance of a particular type.protected Configuration
void
removeChildren(Predicate<? super UMLNode> condition)
void
toString()
Renders the entire content of this renderer and returns it as a String value.protected <IPW extends IndentingPrintWriter>
IPWwriteChildrenTo(IPW output)
Helper method to write all children to the specified output.protected abstract <IPW extends IndentingPrintWriter>
IPWwriteTo(IPW output)
Renders this object to the given indentingoutput
.
-
Constructor Details
-
UMLNode
-
-
Method Details
-
getParent
-
setParent
-
findParent
-
getChildren
-
getChildren
Returns all children that are an instance of a particular type.- Type Parameters:
T
- The type of children to obtain.- Parameters:
type
- The type ofUMLNode
to return (required, non-null).- Returns:
- The filtered list of children of this uml node (unmodifiable).
-
addChild
-
removeChildren
-
getConfiguration
-
writeTo
Renders this object to the given indentingoutput
.- Type Parameters:
IPW
- The subclass of indenting print writer being written to.- Parameters:
output
- The output to render this object to.- Returns:
- A reference to the output for method chaining purposes.
-
writeChildrenTo
Helper method to write all children to the specified output.- Type Parameters:
IPW
- The subclass of indenting print writer being written to.- Parameters:
output
- The output to write the children to.- Returns:
- A reference to the output for method chaining purposes.
-
toString
Renders the entire content of this renderer and returns it as a String value.
-